UNPKG

@rttist/ts-loader-wasm

Version:

TypeScript loader transforming source code allowing usage of advanced RTTIST reflection features.

32 lines (26 loc) 769 B
/* tslint:disable */ /* eslint-disable */ /** * 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;