INNER CODE UNIT · TypeScript

GArgs

stepci/garph · src/index.ts:588

class GArgs<T extends AnyType, X extends Args> extends Type<T, 'Args'> {
  declare _args: X

  constructor(shape: T, args: X) {
    super()
    this.typeDef = shape.typeDef
    this.typeDef.args = args
  }
}

export class GarphSchema {
  types: Map<string, AnyType> = new Map()

  nodeType = this.interface('Node', {
    id: this.id()
  })

  pageInfoType = this.type('PageInfo', {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…