@nestjs/graphql
Version:
GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.
14 lines • 427 B
TypeScript
import { ReturnTypeFunc } from '../interfaces/return-type-func.interface';
/**
* Decorator that marks a class as a GraphQL scalar.
*
* @publicApi
*/
export declare function Scalar(name: string): ClassDecorator;
/**
* Decorator that marks a class as a GraphQL scalar.
*
* @publicApi
*/
export declare function Scalar(name: string, typeFunc: ReturnTypeFunc): ClassDecorator;
//# sourceMappingURL=scalar.decorator.d.ts.map