@rttist/ts-loader-wasm
v0.1.1
Published
TypeScript loader transforming source code allowing usage of advanced RTTIST reflection features.
Downloads
17
Maintainers
Readme
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;