mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
ValidationObject reference updated to SchemaMap in order to avoid making breaking changes
This commit is contained in:
Vendored
+2
-4
@@ -1436,13 +1436,11 @@ export interface RouteOptionsPreObject {
|
||||
failAction?: Lifecycle.FailAction;
|
||||
}
|
||||
|
||||
export interface ValidationObject {
|
||||
[key: string]: AnySchema;
|
||||
}
|
||||
export type ValidationObject = SchemaMap;
|
||||
|
||||
export type RouteOptionsResponseSchema =
|
||||
boolean
|
||||
| SchemaMap
|
||||
| ValidationObject
|
||||
| Schema
|
||||
| ((value: object | Buffer | string, options: ValidationOptions) => Promise<any>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user