import { Array, Lazy, Object, type Parsed, type Runtype, String, Union } from 'runtypes'; 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: Runtype.Core<_A> = Lazy(() => Object({ recurse: Union(String, A,), })); export type A = Parsed; export const B: Runtype.Core<_B> = Lazy(() => Object({ recurse: Array(B), })); export type B = Parsed;