@types/consolidate
Advanced tools
Comparing version 0.14.2 to 0.14.3
@@ -1,10 +0,1 @@ | ||
// 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 | ||
@@ -11,0 +2,0 @@ |
{ | ||
"name": "@types/consolidate", | ||
"version": "0.14.2", | ||
"version": "0.14.3", | ||
"description": "TypeScript definitions for consolidate", | ||
@@ -10,19 +10,19 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate", | ||
"name": "Carlos Ballesteros Velasco", | ||
"url": "https://github.com/soywiz", | ||
"githubUsername": "soywiz" | ||
"githubUsername": "soywiz", | ||
"url": "https://github.com/soywiz" | ||
}, | ||
{ | ||
"name": "Theo Sherry", | ||
"url": "https://github.com/theosherry", | ||
"githubUsername": "theosherry" | ||
"githubUsername": "theosherry", | ||
"url": "https://github.com/theosherry" | ||
}, | ||
{ | ||
"name": "Nicolas Henry", | ||
"url": "https://github.com/nicolashenry", | ||
"githubUsername": "nicolashenry" | ||
"githubUsername": "nicolashenry", | ||
"url": "https://github.com/nicolashenry" | ||
}, | ||
{ | ||
"name": "Andrew Leedham", | ||
"url": "https://github.com/AndrewLeedham", | ||
"githubUsername": "AndrewLeedham" | ||
"githubUsername": "AndrewLeedham", | ||
"url": "https://github.com/AndrewLeedham" | ||
} | ||
@@ -42,4 +42,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "5b491e73559a639d6295f99352f5c34ccd57cd61b9bcf7b966a9566b3fbb2c2b", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "85e77863cffdff805da6bfebe5c362b7c54e60c37fbbf65bc2bfe5ee5fe9b5fd", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,112 @@ # Installation | ||
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 | ||
/// <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 | ||
* Last updated: Mon, 04 Sep 2023 15:41:08 GMT | ||
* Last updated: Wed, 18 Oct 2023 00:05:18 GMT | ||
* Dependencies: [@types/bluebird](https://npmjs.com/package/@types/bluebird), [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# 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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7508
120
84