npm.io
0.0.34 • Published 2 years ago

@types/mu2

Licence
MIT
Version
0.0.34
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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: Mon, 29 Jul 2024 1925 GMT
  • Dependencies: @types/node

Credits

These definitions were written by .