consolidate/ 000755 001751 000177 0000000000 14522265601 015046 5 ustar 00runner 000000 000000 14522265601 14522265601 consolidate/LICENSE 000644 001751 000177 0000002165 14522265601 016057 0 ustar 00runner 000000 000000 14522265601 14522265601 MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
consolidate/README.md 000644 001751 000177 0000005613 14522265601 016323 0 ustar 00runner 000000 000000 14522306040 14522265601 # 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate/index.d.ts)
````ts
// Imported from: https://github.com/soywiz/typescript-node-definitions/consolidate.d.ts
///
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;
(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;
}
````
### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: [@types/bluebird](https://npmjs.com/package/@types/bluebird), [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Carlos Ballesteros Velasco](https://github.com/soywiz), [Theo Sherry](https://github.com/theosherry), [Nicolas Henry](https://github.com/nicolashenry), and [Andrew Leedham](https://github.com/AndrewLeedham).
consolidate/index.d.ts 000644 001751 000177 0000004023 14522265601 016746 0 ustar 00runner 000000 000000 14522265601 14522265601 // Imported from: https://github.com/soywiz/typescript-node-definitions/consolidate.d.ts
///
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;
(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;
}
consolidate/package.json 000644 001751 000177 0000002501 14522265601 017323 0 ustar 00runner 000000 000000 14522306040 14522265601 {
"name": "@types/consolidate",
"version": "0.14.4",
"description": "TypeScript definitions for consolidate",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate",
"license": "MIT",
"contributors": [
{
"name": "Carlos Ballesteros Velasco",
"githubUsername": "soywiz",
"url": "https://github.com/soywiz"
},
{
"name": "Theo Sherry",
"githubUsername": "theosherry",
"url": "https://github.com/theosherry"
},
{
"name": "Nicolas Henry",
"githubUsername": "nicolashenry",
"url": "https://github.com/nicolashenry"
},
{
"name": "Andrew Leedham",
"githubUsername": "AndrewLeedham",
"url": "https://github.com/AndrewLeedham"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/consolidate"
},
"scripts": {},
"dependencies": {
"@types/bluebird": "*",
"@types/node": "*"
},
"typesPublisherContentHash": "ab3f116ba00dd8bc8a058e02a05abb8965556d05fc3f87ce37c4f6920aa42bf7",
"typeScriptVersion": "4.5"
}