mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
[@types/simpl-schema] Add 'oneOf()' method to SimpleSchemaStatic. (#38591)
* Add 'oneOf()' method to SimpleSchemaStatic. * Fix double StringConstructor request change.
This commit is contained in:
committed by
Michael Crane
parent
d84efa6950
commit
100f71247f
Vendored
+1
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user