mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #7306 from valotas/jade
Adapted jade not to have a default export
This commit is contained in:
+2
-2
@@ -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");
|
||||
|
||||
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