( values: unknown[], $: InternalScope )
| 1470 | |
| 1471 | /** `type.unit` and `type.enumerated`, as the literals that are the same Type */ |
| 1472 | export const deferUnits = ( |
| 1473 | values: unknown[], |
| 1474 | $: InternalScope |
| 1475 | ): BaseRoot | undefined => { |
| 1476 | const literals = values.map(literalOf) |
| 1477 | return literals.length === 1 ? |
| 1478 | deferDefinition(literals[0], $) |
| 1479 | : deferUnion(literals, $) |
| 1480 | } |
| 1481 | |
| 1482 | /** `type.Record`, which is its generic once it's anything but called on what can defer */ |
| 1483 | export const deferredRecord = ( |
no test coverage detected