Merge pull request #7306 from valotas/jade

Adapted jade not to have a default export
This commit is contained in:
Masahiro Wakame
2015-12-27 11:42:34 +09:00
2 changed files with 11 additions and 14 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
/// <reference path="jade.d.ts"/>
import jade from 'jade';
import * as jade from 'jade';
jade.compile("b")();
jade.compileFile("foo.jade", {})();
jade.compileClient("a")({ a: 1 });
jade.compileClientWithDependenciesTracked("test").body();
jade.render("h1",{});
jade.renderFile("foo.jade");
jade.renderFile("foo.jade");
+9 -12
View File
@@ -4,16 +4,13 @@
// 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;
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;
}