Adapted jade not to have a default export

This commit is contained in:
Georgios Valotasios
2015-12-20 20:58:08 +01:00
parent 4c41545030
commit c69185b594
2 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
/// <reference path="jade.d.ts"/>
import jade from 'jade';
import jade = require('jade');
jade.compile("b")();
jade.compileFile("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;
}