[@types/simpl-schema] Add 'oneOf()' method to SimpleSchemaStatic. (#38591)

* Add 'oneOf()' method to SimpleSchemaStatic.

* Fix double StringConstructor request change.
This commit is contained in:
Chiciuc Nicușor
2019-09-25 12:40:17 -07:00
committed by Michael Crane
parent d84efa6950
commit 100f71247f
+1
View File
@@ -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[];