Last active
October 20, 2019 12:38
-
-
Save nicu-chiciuc/f67e32d78308c8a4b887e2964615b717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Type definitions for mdg:validated-method meteor package | |
// Project: https://atmospherejs.com/mdg/validated-method | |
// Definitions by: Dave Allen <https://github.com/fullflavedave> | |
interface ValidatedMethod_Static { | |
new(options: { | |
name: string; | |
mixins?: Function[]; | |
validate: (args: { [key: string]: any; }) => void; // returned from SimpleSchemaInstance.validator() method; | |
applyOptions?: { | |
noRetry: boolean; | |
returnStubValue: boolean; | |
throwStubExceptions: boolean; | |
onResultReceived: (result: any) => void; | |
[key: string]: any }; | |
run: (args: { [key: string]: any; }) => void; | |
}): ValidatedMethod_Instance; | |
} | |
interface ValidatedMethod_Instance { | |
call(args: { [key: string]: any; }, cb?: (error: any, result: any) => void ): void; | |
_execute(context: { [key: string]: any; }, args: { [key: string]: any; }): void; | |
} | |
declare const ValidatedMethod: ValidatedMethod_Static; | |
declare module 'meteor/mdg:validated-method' { | |
export const ValidatedMethod: ValidatedMethod_Static; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment