0.1.1 • Published 1 year ago

@rttist/ts-loader-wasm v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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;