Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@types/consolidate
Advanced tools
TypeScript definitions for consolidate
npm install --save @types/consolidate
This package contains type definitions for consolidate (https://github.com/visionmedia/consolidate.js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate.
// 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>;
}
These definitions were written by Carlos Ballesteros Velasco, Theo Sherry, Nicolas Henry, and Andrew Leedham.
FAQs
TypeScript definitions for consolidate
The npm package @types/consolidate receives a total of 2,308 weekly downloads. As such, @types/consolidate popularity was classified as popular.
We found that @types/consolidate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.