Skip to content

Commit b11b60a

Browse files
author
Olivier Refalo
committed
cleanup remaining Template stuff
1 parent a33160d commit b11b60a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

meteor.d.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,6 @@ interface Random {
304304

305305
declare var Random:Random;
306306

307-
// TEMPLATE ----------
308-
309-
interface ITemplate {
310-
[id:string]:ITemplate;
311-
}
312-
declare var Template:Meteor.Template;
313307

314308
// METEOR --------------
315309

@@ -390,7 +384,6 @@ declare module Meteor {
390384

391385
}
392386

393-
// interface Collection implements Collection {
394387
class Collection<T> {
395388

396389
constructor(name:string, options?:CollectionOptions);
@@ -414,6 +407,7 @@ declare module Meteor {
414407

415408
//Meteor.publish("counts-by-room", function (roomId) {
416409
// foo: function () {
410+
// // until TS provides a way to hook this:any
417411
// var self:meteor.IPublishHandler = <meteor.IPublishHandler>this;
418412
// console.log(self.userId);
419413
// self.error(new Meteor.Error(123, "bug", "details"));
@@ -482,6 +476,11 @@ declare module Meteor {
482476
}
483477

484478
// TEMPLATE ------
479+
480+
interface TemplateDico {
481+
[id:string]:Template;
482+
}
483+
485484
interface Template {
486485
rendered:Function;
487486
created:Function;
@@ -541,3 +540,8 @@ declare module Meteor {
541540

542541
}
543542
}
543+
544+
// TEMPLATE ----------
545+
546+
declare var Template:Meteor.TemplateDico;
547+

0 commit comments

Comments
 (0)