diff --git a/packages/meteor/meteor.d.ts b/packages/meteor/meteor.d.ts index 8ebc07618b..76b326ec61 100644 --- a/packages/meteor/meteor.d.ts +++ b/packages/meteor/meteor.d.ts @@ -159,7 +159,13 @@ export namespace Meteor { */ function callAsync(name: string, ...args: any[]): Promise; - interface MethodApplyOptions { + interface MethodApplyOptions< + Result extends + | EJSONable + | EJSONable[] + | EJSONableProperty + | EJSONableProperty[] + > { /** * (Client only) If true, don't send this method until all previous method calls have completed, and don't send any subsequent method calls until this one is completed. */ @@ -203,7 +209,7 @@ export namespace Meteor { >( name: string, args: ReadonlyArray, - options?: MethodApplyOptions, + options?: MethodApplyOptions, asyncCallback?: ( error: global_Error | Meteor.Error | undefined, result?: Result