mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Make the 'bindEnvironment()' function generic. (#38752)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
7f3cd68ef3
commit
116a2f35dd
2
types/meteor/globals/meteor.d.ts
vendored
2
types/meteor/globals/meteor.d.ts
vendored
@@ -112,7 +112,7 @@ declare module Meteor {
|
||||
|
||||
function wrapAsync(func: Function, context?: Object): any;
|
||||
|
||||
function bindEnvironment(func: Function): any;
|
||||
function bindEnvironment<TFunc extends Function>(func: TFunc): TFunc;
|
||||
/** utils **/
|
||||
|
||||
/** Pub/Sub **/
|
||||
|
||||
2
types/meteor/meteor.d.ts
vendored
2
types/meteor/meteor.d.ts
vendored
@@ -117,7 +117,7 @@ declare module "meteor/meteor" {
|
||||
|
||||
function wrapAsync(func: Function, context?: Object): any;
|
||||
|
||||
function bindEnvironment(func: Function): any;
|
||||
function bindEnvironment<TFunc extends Function>(func: TFunc): TFunc;
|
||||
/** utils **/
|
||||
|
||||
/** Pub/Sub **/
|
||||
|
||||
Reference in New Issue
Block a user