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.1 to 0.14.2

108

consolidate/index.d.ts

@@ -21,55 +21,55 @@ // Type definitions for consolidate 0.14

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';
| "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 Requires = SupportedTemplateEngines | "extend" | "ReactDOM" | "babel";
type ConsolidateType = {
[engine in SupportedTemplateEngines]: RendererInterface;
}
};
type RequiresType = {
[engine in Requires]: any;
}
};

@@ -93,11 +93,19 @@ interface Consolidate extends ConsolidateType {

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 },
fn: (err: Error, html: string) => any,
): any;
render(path: string, options?: { cache?: boolean | undefined, [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 | undefined, [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 | undefined, [otherOptions: string]: any }): Promise<string>;
(path: string, options?: { cache?: boolean | undefined; [otherOptions: string]: any }): Promise<string>;
}
{
"name": "@types/consolidate",
"version": "0.14.1",
"version": "0.14.2",
"description": "TypeScript definitions for consolidate",

@@ -41,4 +41,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate",

},
"typesPublisherContentHash": "1f42c7b3346c6745f55acdb977e687db627ff2823675d80b974c014c5ba18df6",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "5b491e73559a639d6295f99352f5c34ccd57cd61b9bcf7b966a9566b3fbb2c2b",
"typeScriptVersion": "4.3"
}

@@ -9,110 +9,5 @@ # 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
// 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
* Last updated: Tue, 06 Jul 2021 20:32:29 GMT
* Last updated: Mon, 04 Sep 2023 15:41:08 GMT
* Dependencies: [@types/bluebird](https://npmjs.com/package/@types/bluebird), [@types/node](https://npmjs.com/package/@types/node)

@@ -119,0 +14,0 @@ * Global values: none

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