UNPKG

@nestjs/graphql

Version:

GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.

20 lines • 766 B
import { ValueNode } from 'graphql'; export interface CustomScalar<T, K> { description?: string; /** * URL pointing to the specification for this scalar (emitted as the * `@specifiedBy(url: ...)` directive in the generated SDL). */ specifiedByURL?: string; /** * Arbitrary metadata attached to the scalar, accessible through the * generated `GraphQLScalarType`'s `extensions` field. */ extensions?: Record<string, unknown>; parseValue: (value: unknown) => K | null | undefined; serialize: (value: unknown) => T | null | undefined; parseLiteral: (valueNode: ValueNode, variables?: { [key: string]: any; } | null) => K | null | undefined; } //# sourceMappingURL=custom-scalar.interface.d.ts.map