mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 04:00:33 +08:00
20 lines
858 B
TypeScript
20 lines
858 B
TypeScript
// 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' {
|
|
module jade {
|
|
function compile(template: string, options?: any): (locals?: any) => string;
|
|
function compileFile(path: string, options?: any): (locals?: any) => string;
|
|
function compileClient(template: string, options?: any): (locals?: any) => string;
|
|
function compileClientWithDependenciesTracked(template: string, options?: any): {
|
|
body: (locals?: any) => string;
|
|
dependencies: string[];
|
|
};
|
|
function render(template: string, options?: any): string;
|
|
function renderFile(path: string, options?: any): string;
|
|
}
|
|
export default jade;
|
|
}
|