UNPKG

@sudoo/marked

Version:

JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous

11 lines (10 loc) 589 B
/** * @author WMXPY * @namespace Host * @description Complier */ import * as TS from "typescript"; export type CreateTypeScriptHostWriteSource = (sourceCode: string) => void; export type CreateTypeScriptHostWriteSourceMap = (sourceMap: string) => void; export type CreateTypeScriptHostWriteDeclaration = (declarationCode: string) => void; export declare const createTypeScriptComplierHost: (sourceCode: string, emitSource?: CreateTypeScriptHostWriteSource, emitSourceMap?: CreateTypeScriptHostWriteSourceMap, emitDeclaration?: CreateTypeScriptHostWriteDeclaration) => TS.CompilerHost;