(...pairs: A)
| 4051 | const A extends ReadonlyArray<readonly [from: AST.LiteralValue, to: AST.LiteralValue]> |
| 4052 | >(...pairs: A): Schema<A[number][1], A[number][0]> |
| 4053 | export function transformLiterals< |
| 4054 | const A extends ReadonlyArray<readonly [from: AST.LiteralValue, to: AST.LiteralValue]> |
| 4055 | >(...pairs: A): Schema<A[number][1], A[number][0]> { |
| 4056 | return Union(...pairs.map(([from, to]) => transformLiteral(from, to))) |
| 4057 | } |
| 4058 | |
| 4059 | /** |
| 4060 | * Attaches a property signature with the specified key and value to the schema. |
nothing calls this directly
no test coverage detected