# @types/consolidate

> TypeScript definitions for consolidate

Latest version **0.14.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/consolidate
pnpm add @types/consolidate
yarn add @types/consolidate
bun add @types/consolidate
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.14.4 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51493 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/consolidate
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/consolidate
- npm.io page: https://npm.io/package/@types/consolidate

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/bluebird](https://npm.io/package/@types/bluebird.md) *

## Recent versions

- 0.14.4 (latest) — 2023-11-07
- 0.14.2 (ts4.3) — 2023-09-04
- 0.14.1 (ts3.6) — 2021-07-06
- 0.14.0 (ts3.2) — 2019-07-09
- 0.0.34 (ts2.8) — 2018-07-14
- 0.0.33 (ts2.3) — 2017-06-20
- 0.0.32 (ts2.0) — 2017-06-02
- 0.14.3 — 2023-10-18
- 0.0.35 — 2019-05-24
- 0.0.31 — 2017-01-01
- 0.0.30 — 2016-09-19
- 0.0.29 — 2016-07-14
- 0.0.28-alpha — 2016-07-08
- 0.0.27-alpha — 2016-07-03
- 0.0.26-alpha — 2016-07-02
- … 6 more at https://npm.io/package/@types/consolidate/versions

## README

# 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

/// <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, 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).

---
_Source: https://npm.io/package/@types/consolidate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
