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

Installation

npm install --save @types/consolidate

Summary

This package contains type definitions for consolidate (https://github.com/visionmedia/consolidate.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate.

index.d.ts

// Type definitions for consolidate 0.14
// Project: https://github.com/visionmedia/consolidate.js
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
//                 Theo Sherry <https://github.com/theosherry>
//                 Nicolas Henry <https://github.com/nicolashenry>
//                 Andrew Leedham <https://github.com/AndrewLeedham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2

// Imported from: https://github.com/soywiz/typescript-node-definitions/consolidate.d.ts

/// <reference types="node" />

import Promise = require("bluebird");

declare var cons: Consolidate;

export = cons;

type SupportedTemplateEngines =
    | 'arc-templates'
    | 'atpl'
    | 'bracket'
    | 'dot'
    | 'dust'
    | 'eco'
    | 'ejs'
    | 'ect'
    | 'haml'
    | 'haml-coffee'
    | 'hamlet'
    | 'handlebars'
    | 'hogan'
    | 'htmling'
    | 'jade'
    | 'jazz'
    | 'jqtpl'
    | 'just'
    | 'liquid'
    | 'liquor'
    | 'lodash'
    | 'marko'
    | 'mote'
    | 'mustache'
    | 'nunjucks'
    | 'plates'
    | 'pug'
    | 'qejs'
    | 'ractive'
    | 'razor'
    | 'react'
    | 'slm'
    | 'squirrelly'
    | 'swig'
    | 'teacup'
    | 'templayed'
    | 'toffee'
    | 'twig'
    | 'underscore'
    | 'vash'
    | 'velocityjs'
    | 'walrus'
    | 'whiskers';

type Requires = SupportedTemplateEngines | 'extend' | 'ReactDOM' | 'babel';

type ConsolidateType = {
    [engine in SupportedTemplateEngines]: RendererInterface;
}

type RequiresType = {
    [engine in Requires]: any;
}

interface Consolidate extends ConsolidateType {
    /**
     * expose the instance of the engine
     */
    requires: RequiresType;

    /**
     * Clear the cache.
     *
     * @api public
     */
    clearCache(): void;
}

interface RendererInterface {
    render(path: string, fn: (err: Error, html: string) => any): any;

    render(path: string, options: { cache?: boolean | undefined, [otherOptions: string]: any }, fn: (err: Error, html: string) => any): any;

    render(path: string, options?: { cache?: boolean | undefined, [otherOptions: string]: any }): Promise<string>;

    (path: string, fn: (err: Error, html: string) => any): any;

    (path: string, options: { cache?: boolean | undefined, [otherOptions: string]: any }, fn: (err: Error, html: string) => any): any;

    (path: string, options?: { cache?: boolean | undefined, [otherOptions: string]: any }): Promise<string>;
}

Additional Details

Credits

These definitions were written by Carlos Ballesteros Velasco, Theo Sherry, Nicolas Henry, and Andrew Leedham.

Current Tags

  • 0.14.1                                ...           latest (5 years ago)
  • 0.0.32                                ...           ts2.0 (9 years ago)
  • 0.0.32                                ...           ts2.1 (9 years ago)
  • 0.0.32                                ...           ts2.2 (9 years ago)
  • 0.0.33                                ...           ts2.3 (9 years ago)
  • 0.0.33                                ...           ts2.4 (9 years ago)
  • 0.0.33                                ...           ts2.5 (9 years ago)
  • 0.0.33                                ...           ts2.6 (9 years ago)
  • 0.0.33                                ...           ts2.7 (9 years ago)
  • 0.0.34                                ...           ts2.8 (8 years ago)
  • 0.0.34                                ...           ts2.9 (8 years ago)
  • 0.0.34                                ...           ts3.0 (8 years ago)
  • 0.0.34                                ...           ts3.1 (8 years ago)
  • 0.14.0                                ...           ts3.2 (7 years ago)
  • 0.14.0                                ...           ts3.3 (7 years ago)
  • 0.14.0                                ...           ts3.4 (7 years ago)
  • 0.14.0                                ...           ts3.5 (7 years ago)
  • 0.14.1                                ...           ts3.6 (5 years ago)
  • 0.14.1                                ...           ts3.7 (5 years ago)
  • 0.14.1                                ...           ts3.8 (5 years ago)
  • 0.14.1                                ...           ts3.9 (5 years ago)
  • 0.14.1                                ...           ts4.0 (5 years ago)
  • 0.14.1                                ...           ts4.1 (5 years ago)
  • 0.14.1                                ...           ts4.2 (5 years ago)
  • 0.14.1                                ...           ts4.3 (5 years ago)
  • 0.14.1                                ...           ts4.4 (5 years ago)
  • 0.14.1                                ...           ts4.5 (5 years ago)
  • 0.14.1                                ...           ts4.6 (5 years ago)
  • 0.14.1                                ...           ts4.7 (5 years ago)
  • 0.14.1                                ...           ts4.8 (5 years ago)
  • 0.14.1                                ...           ts4.9 (5 years ago)

18 Versions

  • 0.14.1                                ...           5 years ago
  • 0.14.0                                ...           7 years ago
  • 0.0.35                                ...           7 years ago
  • 0.0.34                                ...           8 years ago
  • 0.0.33                                ...           9 years ago
  • 0.0.32                                ...           9 years ago
  • 0.0.31                                ...           9 years ago
  • 0.0.30                                ...           10 years ago
  • 0.0.29                                ...           10 years ago
  • 0.0.28-alpha                                ...           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.17-alpha                                ...           10 years ago
  • 0.0.16-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |