INNER CODE UNIT · TypeScript
GList
stepci/garph · src/index.ts:453
class GList<T extends AnyType> extends Type<T, 'List'> {
constructor(shape: T) {
super()
this.typeDef = {
type: 'List',
shape: shape
}
}
optional() {
return new GOptional<this>(this)
}
required() {
this.typeDef.isRequired = true
return this
}