mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
meteor: Fix incorrect return type Tracker.nonreactive (#46647)
* Meteor tracker.nonreactive fix return type to match return of passed function * meteor tracker.nonreactive update globals
This commit is contained in:
parent
fa8a29a57f
commit
0359fd8b3a
2
types/meteor/globals/tracker.d.ts
vendored
2
types/meteor/globals/tracker.d.ts
vendored
@ -31,7 +31,7 @@ declare module Tracker {
|
||||
|
||||
function flush(): void;
|
||||
|
||||
function nonreactive(func: Function): void;
|
||||
function nonreactive<T>(func: () => T): T;
|
||||
|
||||
function onInvalidate(callback: Function): void;
|
||||
}
|
||||
|
||||
2
types/meteor/tracker.d.ts
vendored
2
types/meteor/tracker.d.ts
vendored
@ -32,7 +32,7 @@ declare module "meteor/tracker" {
|
||||
|
||||
function flush(): void;
|
||||
|
||||
function nonreactive(func: Function): void;
|
||||
function nonreactive<T>(func: () => T): T;
|
||||
|
||||
function onInvalidate(callback: Function): void;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user