forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jade.d.ts
16 lines (15 loc) · 815 Bytes
/
jade.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Type definitions for jade
// Project: https://github.com/jadejs/jade
// Definitions by: Panu Horsmalahti <https://github.com/panuhorsmalahti>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'jade' {
export function compile(template: string, options?: any): (locals?: any) => string;
export function compileFile(path: string, options?: any): (locals?: any) => string;
export function compileClient(template: string, options?: any): (locals?: any) => string;
export function compileClientWithDependenciesTracked(template: string, options?: any): {
body: (locals?: any) => string;
dependencies: string[];
};
export function render(template: string, options?: any): string;
export function renderFile(path: string, options?: any): string;
}