From 100f71247f53bfd7ab494a007f28dc55826c2d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chiciuc=20Nicu=C8=99or?= Date: Wed, 25 Sep 2019 22:40:17 +0300 Subject: [PATCH] [@types/simpl-schema] Add 'oneOf()' method to SimpleSchemaStatic. (#38591) * Add 'oneOf()' method to SimpleSchemaStatic. * Fix double StringConstructor request change. --- types/simpl-schema/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/simpl-schema/index.d.ts b/types/simpl-schema/index.d.ts index 2639b47009..e02190bca5 100644 --- a/types/simpl-schema/index.d.ts +++ b/types/simpl-schema/index.d.ts @@ -122,6 +122,7 @@ interface SimpleSchemaStatic { addValidator(validator: () => boolean): any; pick(...fields: string[]): SimpleSchemaStatic; omit(...fields: string[]): SimpleSchemaStatic; + oneOf(...types: Array<(SchemaDefinition | BooleanConstructor | StringConstructor | NumberConstructor | DateConstructor | ArrayConstructor)>): SimpleSchemaStatic; clean(doc: any, options?: CleanOption): any; schema(key: string): SchemaDefinition; schema(): SchemaDefinition[];