DefinitelyTyped/types/marko/index.d.ts
2018-06-26 16:30:21 +02:00

18 lines
615 B
TypeScript

// Type definitions for marko 4.6
// Project: http://markojs.com
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
import { AsyncStream, Template } from './src/runtime/html';
export function createOut(globalData: any): AsyncStream;
export interface TemplateOptions {
buffer?: boolean;
writeToDisk?: boolean;
}
export function load(templatePath: string, options?: TemplateOptions): Template;
export function load(templatePath: string, templateSrc: string, options?: TemplateOptions): Template;