INNER CODE UNIT · TypeScript

Type

stepci/garph · src/index.ts:8

export abstract class Type<T, X extends GarphType> {
  _name?: string
  _is: X
  _inner?: any
  _output?: any
  _args?: Args
  _shape: T
  typeDef: TypeDefinition<T>

  description(text: string) {
    this.typeDef.description = text
    return this
  }

  deprecated(reason: string) {
    this.typeDef.deprecated = reason
    return this
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…