(value: unknown)
| 1610 | |
| 1611 | // described by kind, so a bundle ships no printer |
| 1612 | const describeValue = (value: unknown) => |
| 1613 | isValidator(value) ? |
| 1614 | Reflect.getOwnPropertyDescriptor(value, "expression") ? |
| 1615 | String(value) |
| 1616 | : "a Type" |
| 1617 | : typeof value === "string" ? JSON.stringify(value) |
| 1618 | : typeof value === "function" ? "a function" |
| 1619 | : value !== null && typeof value === "object" ? "an object" |
| 1620 | : String(value) |
| 1621 | |
| 1622 | export const writeCreationMismatchMessage = < |
| 1623 | label extends string, |
no test coverage detected