diff --git a/types/simpl-schema/index.d.ts b/types/simpl-schema/index.d.ts index 3ae568b855..2639b47009 100644 --- a/types/simpl-schema/index.d.ts +++ b/types/simpl-schema/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Andreas Richter // Qkramer // Deskoh +// Nicusor Chiciuc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface ValidationContext extends SimpleSchemaValidationContextStatic { @@ -122,7 +123,8 @@ interface SimpleSchemaStatic { pick(...fields: string[]): SimpleSchemaStatic; omit(...fields: string[]): SimpleSchemaStatic; clean(doc: any, options?: CleanOption): any; - schema(key?: string): SchemaDefinition | SchemaDefinition[]; + schema(key: string): SchemaDefinition; + schema(): SchemaDefinition[]; getDefinition(key: string, propList?: any, functionContext?: any): any; keyIsInBlackBox(key: string): boolean; labels(labels: {[key: string]: string}): void;