mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
node fix for mu2
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ import stream = require('stream');
|
||||
|
||||
var str: string;
|
||||
var value: any;
|
||||
var read: ReadableStream;
|
||||
var read: NodeJS.ReadableStream;
|
||||
var parsed: mu2.IParsed;
|
||||
|
||||
str = mu2.root;
|
||||
|
||||
Vendored
+4
-4
@@ -10,7 +10,7 @@
|
||||
declare module "mu2" {
|
||||
export var root: string;
|
||||
|
||||
export function compileAndRender(templateName: string, view: any): ReadableStream;
|
||||
export function compileAndRender(templateName: string, view: any): NodeJS.ReadableStream;
|
||||
|
||||
export function compile(filename: string, callback: (err: Error, parsed: IParsed) => void): void;
|
||||
|
||||
@@ -18,10 +18,10 @@ declare module "mu2" {
|
||||
export function compileText(name: string, template: string): IParsed;
|
||||
export function compileText(template: string): IParsed;
|
||||
|
||||
export function render(filenameOrParsed: string, view: any): ReadableStream;
|
||||
export function render(filenameOrParsed: IParsed, view: any): ReadableStream;
|
||||
export function render(filenameOrParsed: string, view: any): NodeJS.ReadableStream;
|
||||
export function render(filenameOrParsed: IParsed, view: any): NodeJS.ReadableStream;
|
||||
|
||||
export function renderText(template: string, view: any, partials?: any): ReadableStream;
|
||||
export function renderText(template: string, view: any, partials?: any): NodeJS.ReadableStream;
|
||||
|
||||
export function clearCache(templateName?: string): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user