Skip to content

Commit

Permalink
Merge branch 'kaorun343-fix/custom-scalar'
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Apr 16, 2020
2 parents 65e4a3d + c5be8ee commit 7d58f5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions lib/interfaces/custom-scalar.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import {
GraphQLScalarLiteralParser,
GraphQLScalarSerializer,
GraphQLScalarValueParser,
} from 'graphql';

export interface CustomScalar<T, K> {
description: string;
parseValue(value: T): K;
serialize(value: K): T;
parseLiteral(ast): K;
description?: string;
parseValue: GraphQLScalarValueParser<K>;
serialize: GraphQLScalarSerializer<T>;
parseLiteral: GraphQLScalarLiteralParser<K>;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/graphql",
"version": "7.2.4",
"version": "7.3.0-next.3",
"description": "Nest - modern, fast, powerful node.js web framework (@graphql)",
"author": "Kamil Mysliwiec",
"license": "MIT",
Expand Down

0 comments on commit 7d58f5e

Please sign in to comment.