(shape: InferredShape)
| 43 | const MAX_ANYOF = 4; |
| 44 | |
| 45 | const isUnknown = (shape: InferredShape): boolean => |
| 46 | shape.type === undefined && shape.anyOf === undefined; |
| 47 | |
| 48 | /** Infer the shape of one observed value. Reads structure only, never values. */ |
| 49 | export const inferShape = (value: unknown, depth = 0): InferredShape => { |
no outgoing calls
no test coverage detected