File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 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({
188188### GraphQLScalarType
189189
190190``` ts
191- class GraphQLScalarType <InternalType > {
192- constructor (config : GraphQLScalarTypeConfig <InternalType >);
191+ class GraphQLScalarType <InternalType , ExternalType > {
192+ constructor (config : GraphQLScalarTypeConfig <InternalType , ExternalType >);
193193}
194194
195- type GraphQLScalarTypeConfig <InternalType > = {
195+ type GraphQLScalarTypeConfig <InternalType , ExternalType > = {
196196 name: string ;
197197 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 ;
201205};
202206```
203207
You can’t perform that action at this time.
0 commit comments