@types/mu2
TypeScript icon, indicating that this package has built-in type declarations

0.0.33 • Public • Published

Installation

npm install --save @types/mu2

Summary

This package contains type definitions for mu2 (https://github.com/raycmorgan/mu).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mu2.

index.d.ts

// Imported from: https://github.com/soywiz/typescript-node-definitions/mu2.d.ts

/// <reference types="node" />

export declare var root: string;

export declare function compileAndRender(templateName: string, view: any): NodeJS.ReadableStream;

export declare function compile(filename: string, callback: (err: Error, parsed: IParsed) => void): void;

export declare function compileText(
    name: string,
    template: string,
    callback: (err: Error, parsed: IParsed) => void,
): void;
export declare function compileText(name: string, template: string): IParsed;
export declare function compileText(template: string): IParsed;

export declare function render(filenameOrParsed: string, view: any): NodeJS.ReadableStream;
export declare function render(filenameOrParsed: IParsed, view: any): NodeJS.ReadableStream;

export declare function renderText(template: string, view: any, partials?: any): NodeJS.ReadableStream;

export declare function clearCache(templateName?: string): void;

export interface IParsed {}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Jeff Goddard.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mu2

Weekly Downloads

60

Version

0.0.33

License

MIT

Unpacked Size

4.6 kB

Total Files

5

Last publish

Collaborators

  • types