pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
20 lines (19 loc) • 738 B
TypeScript
export declare function lookupDocFile(name: string): string;
export declare function expandHtml(html: string, params?: pxt.Map<string>, appTheme?: pxt.AppTheme): string;
export declare function expandDocTemplateCore(template: string): string;
export declare function expandDocFileTemplate(name: string): string;
export interface ServeOptions {
localToken: string;
autoStart: boolean;
packaged?: boolean;
browser?: string;
port?: number;
hostname?: string;
wsPort?: number;
serial?: boolean;
noauth?: boolean;
backport?: number;
https?: boolean;
}
export declare function compileScriptAsync(id: string): Promise<string>;
export declare function serveAsync(options: ServeOptions): Promise<void>;