meteor: Fix compile errors (#19075)

This commit is contained in:
Andy
2017-08-22 10:57:26 -07:00
committed by GitHub
parent 67dcd2a5d9
commit 36735d136a
2 changed files with 2 additions and 2 deletions

View File

@@ -730,6 +730,6 @@ if (Meteor.isTest) {
DDPRateLimiter.addRule({ userId: 'foo' }, 5, 1000);
DDPRateLimiter.addRule((userId: string) => userId == 'foo', 5, 1000);
DDPRateLimiter.addRule({ userId: userId => userId == 'foo' }, 5, 1000);
Template.instance().autorun(() => { }).stop();

View File

@@ -204,7 +204,7 @@ declare module "meteor/mongo" {
interface Cursor<T> {
count(applySkipLimit?: boolean): number;
fetch(): Array<T>;
forEach(callback: < T > (doc: T, index: number, cursor: Cursor<T>) => void, thisArg?: any): void;
forEach(callback: (doc: T, index: number, cursor: Cursor<T>) => void, thisArg?: any): void;
map<U>(callback: (doc: T, index: number, cursor: Cursor<T>) => U, thisArg?: any): Array<U>;
observe(callbacks: ObserveCallbacks): Meteor.LiveQueryHandle;
observeChanges(callbacks: ObserveChangesCallbacks): Meteor.LiveQueryHandle;