Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/consolidate

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/consolidate - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

8

consolidate/index.d.ts

@@ -92,11 +92,11 @@ // Type definitions for consolidate 0.14

render(path: string, options: { cache?: boolean, [otherOptions: string]: any }, 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, [otherOptions: string]: any }): Promise<string>;
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, [otherOptions: string]: any }, 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, [otherOptions: string]: any }): Promise<string>;
(path: string, options?: { cache?: boolean | undefined, [otherOptions: string]: any }): Promise<string>;
}
{
"name": "@types/consolidate",
"version": "0.14.0",
"version": "0.14.1",
"description": "TypeScript definitions for consolidate",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate",
"license": "MIT",

@@ -29,3 +30,3 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -41,4 +42,4 @@ "type": "git",

},
"typesPublisherContentHash": "56980c5a2774af45e806c34e3853288ab4dd7edde68d8206fe0a71166448a7d7",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "1f42c7b3346c6745f55acdb977e687db627ff2823675d80b974c014c5ba18df6",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,115 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate
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
// 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
Additional Details
* Last updated: Tue, 09 Jul 2019 00:13:27 GMT
* Dependencies: @types/bluebird, @types/node
// 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: Tue, 06 Jul 2021 20:32:29 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>.
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).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc