Merge pull request #19617 from ardatan/master

meteor/server-render added
This commit is contained in:
Arthur Ozga
2017-09-14 15:22:48 -07:00
committed by GitHub
3 changed files with 18 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
/// <reference path="./mongo.d.ts" />
/// <reference path="./random.d.ts" />
/// <reference path="./reactive-var.d.ts" />
/// <reference path="./server-render.d.ts" />
/// <reference path="./session.d.ts" />
/// <reference path="./templating.d.ts" />
/// <reference path="./tiny-test.d.ts" />

16
types/meteor/server-render.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
import * as http from "http";
declare module "meteor/server-render" {
interface Sink {
request?: http.IncomingMessage;
arch?: string;
head?: string;
body?: string;
htmlById?: { [key: string]: string };
maybeMadeChanges?: boolean;
appendToHead(html: string): void;
appendToBody(html: string): void;
appendToElementById(id: string, html: string): void;
renderIntoElementById(id: string, html: string): void;
}
function onPageLoad(sink: Sink): Promise<any> | any;
}

View File

@@ -29,6 +29,7 @@
"meteor.d.ts",
"mongo.d.ts",
"reactive-var.d.ts",
"server-render.d.ts",
"session.d.ts",
"tiny-test.d.ts",
"tools.d.ts",