@grapi/server
Version:
Grapi Schema Generator For GraphQL Server
20 lines (19 loc) • 693 B
TypeScript
import { ScalarTypeDefinitionNode } from 'graphql';
import { SdlDirective } from '../interface';
import { SdlNamedType } from './interface';
export default class SdlScalarType implements SdlNamedType {
private readonly typeDef;
private readonly name;
private readonly description;
private readonly directives;
constructor({ name, description, directives, typeDef, }: {
name: string;
description?: string;
directives?: Record<string, SdlDirective>;
typeDef: ScalarTypeDefinitionNode;
});
getName(): string;
getDescription(): string;
getDirectives(): Record<string, SdlDirective>;
getTypeDef(): ScalarTypeDefinitionNode;
}