INNER CODE UNIT · TypeScript

GScalar

stepci/garph · src/index.ts:435

class GScalar<I, O> extends Type<I, 'Scalar'> {
  declare _output: O

  constructor(name: string, scalarOptions?: ScalarOptions<I, O>) {
    super()
    this.typeDef = {
      name,
      type: 'Scalar',
      scalarOptions
    }
  }

  specifiedByUrl(url: string) {
    this.typeDef.scalarOptions.specifiedByUrl = url
    return this
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…