UNPKG

ts-import

Version:

Import (compile and cache on the fly) TypeScript files dynamically with ease.

8 lines (7 loc) 213 B
import tsc from 'typescript'; export interface CompileOptions { tsPath: string; jsPath: string; compilerOptions: tsc.CompilerOptions; } export declare const compile: (options: CompileOptions) => void;