(value: unknown)
| 102 | |
| 103 | /** Checks if the given value is a schema or schema function. */ |
| 104 | export function isSchemaOrSchemaFn(value: unknown): value is SchemaOrSchemaFn<unknown> { |
| 105 | return value instanceof SchemaImpl || typeof value === 'function'; |
| 106 | } |
| 107 | |
| 108 | /** Checks that a path node belongs to the schema function currently being compiled. */ |
| 109 | export function assertPathIsCurrent(path: SchemaPath<unknown>): void { |
no outgoing calls
no test coverage detected
searching dependent graphs…