import { array, recursion, string, type, Type, type TypeOf, union } from 'io-ts'; import { type A as _A, type B as _B } from '@runtyping/test-type-writers/fixtures/source/recursive'; // This file is generated by runtyping (https://github.com/johngeorgewright/runtyping). // Manual changes might be lost - proceed with caution! export const A: Type<_A> = recursion('A', () => type({ recurse: union([string, A,]), })); export type A = TypeOf; export const B: Type<_B> = recursion('B', () => type({ recurse: array(B), })); export type B = TypeOf;