UNPKG

t-graphql

Version:

typed GraphQL - end-to-end type-safe GraphQL for TypeScript. Think tRPC, but GraphQL

8 lines (7 loc) 399 B
import { NamedType } from './NamedType.abstract'; import { ScalarType } from './types/ScalarType.type'; export declare class CustomScalarType<Name extends string, T extends ScalarType> extends NamedType<Name> { type: T; constructor(typename: Name, type: T); } export declare function scalarType<Name extends string, T extends ScalarType>(typename: Name, type: T): CustomScalarType<Name, T>;