(s: unknown)
| 426 | } |
| 427 | |
| 428 | function isNullLike(s: unknown): boolean { |
| 429 | if (!s || typeof s !== "object") return false; |
| 430 | const obj = s as Record<string, unknown>; |
| 431 | if (obj.type === "null") return true; |
| 432 | if ("not" in obj && typeof obj.not === "object" && obj.not !== null && Object.keys(obj.not).length === 0) return true; |
| 433 | return false; |
| 434 | } |
| 435 | |
| 436 | export function cloneSchemaForCodegen<T>(value: T): T { |
| 437 | if (Array.isArray(value)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…