(schema: S)
| 2731 | */ |
| 2732 | export function flip<S extends Top>(schema: S): S extends flip<infer F> ? F["Rebuild"] : flip<S> |
| 2733 | export function flip<S extends Top>(schema: S): flip<S> { |
| 2734 | if (isFlip$(schema)) { |
| 2735 | return schema.schema.rebuild(SchemaAST.flip(schema.ast)) |
| 2736 | } |
| 2737 | return make(SchemaAST.flip(schema.ast), { [FlipTypeId]: FlipTypeId, schema }) |
| 2738 | } |
| 2739 | |
| 2740 | /** |
| 2741 | * Type-level representation returned by {@link Literal}. |
no test coverage detected