import { Intersect, Number, Object, type Parsed, type Runtype, type Static, String, Union } from 'runtypes'; // This file is generated by runtyping (https://github.com/johngeorgewright/runtyping). // Manual changes might be lost - proceed with caution! export const A = (T: Runtype.Core,) => Object({ type: T, }); export type A = Static>>; export const B = (T: Runtype.Core,) => Object({ type: T, }); export type B = Static>>; export const C = (T: Runtype.Core,) => Union(String, T,); export type C = Static>>; export const D = (T: Runtype.Core,) => Object({ type: T, }); export type D = Static>>; export const E = Object({ foo: String, }); export type E = Parsed; export const F = ,>(T: Runtype.Core,) => Object({ type: T, }); export type F = Static>>; export const G = Object({ abc: A(Object({ data: String, }),), }); export type G = Parsed; export const Test = (T: Runtype.Core,) => Intersect(T, Object({ count: Number, }),); export type Test = Static>>; export const Foo = Object({ abc: Test(Object({ data: String, }),), }); export type Foo = Parsed;