INNER CODE UNIT · TypeScript
GString
stepci/garph · src/index.ts:252
class GString<T extends GarphType> extends Type<string, T> {
constructor(type: 'String' | 'ID' = 'String') {
super()
this.typeDef = {
type
}
}
optional() {
return new GOptional<this>(this)
}
required() {
this.typeDef.isRequired = true
return this
}
list() {