@types/jade
TypeScript definitions for jade
Last updated 10 years ago by types .
MIT · Original npm · Tarball · package.json
$ cnpm install @types/jade 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.31                                ...           latest (5 years ago)
  • 0.0.30                                ...           ts2.0 (9 years ago)
  • 0.0.30                                ...           ts2.1 (9 years ago)
  • 0.0.30                                ...           ts2.2 (9 years ago)
  • 0.0.30                                ...           ts2.3 (9 years ago)
  • 0.0.30                                ...           ts2.4 (9 years ago)
  • 0.0.30                                ...           ts2.5 (9 years ago)
  • 0.0.30                                ...           ts2.6 (9 years ago)
  • 0.0.30                                ...           ts2.7 (9 years ago)
  • 0.0.30                                ...           ts2.8 (9 years ago)
  • 0.0.30                                ...           ts2.9 (9 years ago)
  • 0.0.30                                ...           ts3.0 (9 years ago)
  • 0.0.30                                ...           ts3.1 (9 years ago)
  • 0.0.30                                ...           ts3.2 (9 years ago)
  • 0.0.30                                ...           ts3.3 (9 years ago)
  • 0.0.30                                ...           ts3.4 (9 years ago)
  • 0.0.30                                ...           ts3.5 (9 years ago)
  • 0.0.31                                ...           ts3.6 (5 years ago)
  • 0.0.31                                ...           ts3.7 (5 years ago)
  • 0.0.31                                ...           ts3.8 (5 years ago)
  • 0.0.31                                ...           ts3.9 (5 years ago)
  • 0.0.31                                ...           ts4.0 (5 years ago)
  • 0.0.31                                ...           ts4.1 (5 years ago)
  • 0.0.31                                ...           ts4.2 (5 years ago)
  • 0.0.31                                ...           ts4.3 (5 years ago)
  • 0.0.31                                ...           ts4.4 (5 years ago)
  • 0.0.31                                ...           ts4.5 (5 years ago)
  • 0.0.31                                ...           ts4.6 (5 years ago)
  • 0.0.31                                ...           ts4.7 (5 years ago)
  • 0.0.31                                ...           ts4.8 (5 years ago)
  • 0.0.31                                ...           ts4.9 (5 years ago)

13 Versions

  • 0.0.31                                ...           5 years ago
  • 0.0.30                                ...           9 years ago
  • 0.0.29                                ...           10 years ago
  • 0.0.28                                ...           10 years ago
  • 0.0.27-alpha                                ...           10 years ago
  • 0.0.26-alpha                                ...           10 years ago
  • 0.0.25-alpha                                ...           10 years ago
  • 0.0.24-alpha                                ...           10 years ago
  • 0.0.23-alpha                                ...           10 years ago
  • 0.0.22-alpha                                ...           10 years ago
  • 0.0.21-alpha                                ...           10 years ago
  • 0.0.16-alpha                                ...           10 years ago
  • 0.0.15-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |