Skip to content

Commit b14f5fd

Browse files
committed
fix types
1 parent 4317476 commit b14f5fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/type/__tests__/scalars-test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ describe('Type System: Specified scalar types', () => {
6666

6767
it('parseConstLiteral', () => {
6868
function parseConstLiteral(str: string) {
69+
/* @ts-expect-error to be removed in v18 when all custom scalars will have default method */
6970
return GraphQLInt.parseConstLiteral(parseConstValue(str));
7071
}
7172

@@ -228,6 +229,7 @@ describe('Type System: Specified scalar types', () => {
228229

229230
it('parseConstLiteral', () => {
230231
function parseConstLiteral(str: string) {
232+
/* @ts-expect-error to be removed in v18 when all custom scalars will have default method */
231233
return GraphQLFloat.parseConstLiteral(parseConstValue(str));
232234
}
233235

@@ -338,6 +340,7 @@ describe('Type System: Specified scalar types', () => {
338340

339341
it('parseConstLiteral', () => {
340342
function parseConstLiteral(str: string) {
343+
/* @ts-expect-error to be removed in v18 when all custom scalars will have default method */
341344
return GraphQLString.parseConstLiteral(parseConstValue(str));
342345
}
343346

@@ -447,6 +450,7 @@ describe('Type System: Specified scalar types', () => {
447450

448451
it('parseConstLiteral', () => {
449452
function parseConstLiteral(str: string) {
453+
/* @ts-expect-error to be removed in v18 when all custom scalars will have default method */
450454
return GraphQLBoolean.parseConstLiteral(parseConstValue(str));
451455
}
452456

@@ -559,6 +563,7 @@ describe('Type System: Specified scalar types', () => {
559563

560564
it('parseConstLiteral', () => {
561565
function parseConstLiteral(str: string) {
566+
/* @ts-expect-error to be removed in v18 when all custom scalars will have default method */
562567
return GraphQLID.parseConstLiteral(parseConstValue(str));
563568
}
564569

0 commit comments

Comments
 (0)