mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Adapted jade not to have a default export
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
/// <reference path="jade.d.ts"/>
|
||||
|
||||
import jade from 'jade';
|
||||
import jade = require('jade');
|
||||
|
||||
jade.compile("b")();
|
||||
jade.compileFile("foo.jade", {})();
|
||||
|
||||
Vendored
+9
-12
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user