File tree 1 file changed +10
-6
lines changed 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -188,16 +188,20 @@ const MyAppSchema = new GraphQLSchema({
188
188
### GraphQLScalarType
189
189
190
190
``` ts
191
- class GraphQLScalarType <InternalType > {
192
- constructor (config : GraphQLScalarTypeConfig <InternalType >);
191
+ class GraphQLScalarType <InternalType , ExternalType > {
192
+ constructor (config : GraphQLScalarTypeConfig <InternalType , ExternalType >);
193
193
}
194
194
195
- type GraphQLScalarTypeConfig <InternalType > = {
195
+ type GraphQLScalarTypeConfig <InternalType , ExternalType > = {
196
196
name: string ;
197
197
description? : string ;
198
- serialize: (value : mixed ) => InternalType ;
199
- parseValue? : (value : mixed ) => InternalType ;
200
- parseLiteral? : (valueAST : Value ) => InternalType ;
198
+ specifiedByURL? : Maybe <string >;
199
+ serialize: (outputValue : unknown ) => ExternalType ;
200
+ parseValue? : (inputValue : unknown ) => InternalType ;
201
+ parseLiteral? : (
202
+ valueAST : Value ,
203
+ variables ? : Maybe <Record <string , unknown >>,
204
+ ) => InternalType ;
201
205
};
202
206
```
203
207
You can’t perform that action at this time.
0 commit comments