| 13 | export type { AnyObject, AnySchema }; |
| 14 | |
| 15 | export interface ISchema<T, C = any, F extends Flags = any, D = any> { |
| 16 | __flags: F; |
| 17 | __context: C; |
| 18 | __outputType: T; |
| 19 | __default: D; |
| 20 | |
| 21 | cast(value: any, options?: CastOptions<C>): T; |
| 22 | cast(value: any, options: CastOptionalityOptions<C>): T | null | undefined; |
| 23 | |
| 24 | validate(value: any, options?: ValidateOptions<C>): Promise<T>; |
| 25 | |
| 26 | asNestedTest(config: NestedTestConfig): Test; |
| 27 | |
| 28 | describe(options?: ResolveOptions<C>): SchemaFieldDescription; |
| 29 | resolve(options: ResolveOptions<C>): ISchema<T, C, F>; |
| 30 | } |
| 31 | |
| 32 | export type InferType<T extends ISchema<any, any>> = T['__outputType']; |
| 33 |
no outgoing calls
no test coverage detected
searching dependent graphs…