mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-20 19:24:34 +00:00
meteor: Fix compile errors (#19075)
This commit is contained in:
@@ -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();
|
||||
|
||||
2
types/meteor/mongo.d.ts
vendored
2
types/meteor/mongo.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user