0.0.34 • Published 6 months ago
@types/jade v0.0.34
Installation
npm install --save @types/jade
Summary
This package contains type definitions for jade (https://github.com/jadejs/jade).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jade.
index.d.ts
// Type definitions for jade
// Project: https://github.com/jadejs/jade
// Definitions by: Panu Horsmalahti <https://github.com/panuhorsmalahti>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export type JadeCustomFilterFunction = (text: string, options: {
[key: string]: boolean;
}) => string;
export interface JadeOptions {
filename?: string | undefined;
basedir?: string | undefined;
doctype?: string | undefined;
pretty?: boolean | string | undefined;
filters?: {
[key: string]: JadeCustomFilterFunction
} | undefined;
self?: boolean | undefined;
debug?: boolean | undefined;
compileDebug?: boolean | undefined;
globals?: string[] | undefined;
cache?: boolean | undefined;
inlineRuntimeFunctions?: boolean | undefined;
name?: string | undefined;
}
export interface TemplateLocals {
[key: string]: any;
}
export type JadeGenerationFunction = (locals?: TemplateLocals) => string;
export declare function compile(template: string, options?: JadeOptions): JadeGenerationFunction;
export declare function compileFile(path: string, options?: JadeOptions): JadeGenerationFunction;
export declare function compileClient(template: string, options?: JadeOptions): JadeGenerationFunction;
export declare function compileClientWithDependenciesTracked(template: string, options?: JadeOptions): {
body: JadeGenerationFunction;
dependencies: string[];
};
export declare function render(template: string, options?: JadeOptions): string;
export declare function renderFile(path: string, options?: JadeOptions): string;
Additional Details
- Last updated: Thu, 08 Jul 2021 14:23:22 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Panu Horsmalahti.
0.0.32
8 months ago
0.0.33
7 months ago
0.0.34
6 months ago
0.0.31
3 years ago
0.0.30
7 years ago
0.0.29
8 years ago
0.0.28
8 years ago
0.0.27-alpha
8 years ago
0.0.26-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.16-alpha
8 years ago
0.0.15-alpha
8 years ago