Home > @wixc3/typescript > compileCode
Compiles a code string to typescript AST
Signature:
export declare function compileCode(code: string, fakePath?: string): ts.SourceFile;
Parameter | Type | Description |
---|---|---|
code | string | |
fakePath | string | _(Optional)_ path the virtual file of the code |
Returns:
ts.SourceFile