INNER CODE UNIT · TypeScript
GUnion
stepci/garph · src/index.ts:379
class GUnion<N extends string, T extends AnyObjects> extends Type<T, 'Union'> {
declare _name: N
declare _inner: T
constructor(name: string, shape: T) {
super()
this.typeDef = {
name,
type: 'Union',
shape
}
}
}
class GRef<T> extends Type<T, 'Ref'> {
declare _inner: T extends RefType ? ReturnType<T> : T
constructor(ref: T) {