@rttist/ts-loader-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Exports

/**
 * Object that contains information about the package(/project) being transformed.
 */
export class PackageInfo {
    /**
    * @param {string} name
    * @param {string} rootDir
    */
    constructor(name: string, rootDir: string);
}

/**
 * Transforms the code to be compatible with the RTTIST reflection.
 * @param code
 * @param path
 * @param packageInfo
 */
export function transform(code: string, path: string, packageInfo: PackageInfo): string;

/**
 * Loads a file from the file system and returns code compatible with the RTTIST reflection.
 * @description This function is available only in WASI.
 * @param path
 * @param packageInfo
 */
export function load(path: string, packageInfo: PackageInfo): string;

Package Sidebar

Install

npm i @rttist/ts-loader-wasm

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

1.88 MB

Total Files

7

Last publish

Collaborators

  • rttist