From b14f5fd3b270b4cf78972e89af5ebc22c5550af4 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Mon, 30 Sep 2024 12:51:37 +0300 Subject: [PATCH] fix types --- src/type/__tests__/scalars-test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/type/__tests__/scalars-test.ts b/src/type/__tests__/scalars-test.ts index eff300918d..fbb2cd9087 100644 --- a/src/type/__tests__/scalars-test.ts +++ b/src/type/__tests__/scalars-test.ts @@ -66,6 +66,7 @@ describe('Type System: Specified scalar types', () => { it('parseConstLiteral', () => { function parseConstLiteral(str: string) { + /* @ts-expect-error to be removed in v18 when all custom scalars will have default method */ return GraphQLInt.parseConstLiteral(parseConstValue(str)); } @@ -228,6 +229,7 @@ describe('Type System: Specified scalar types', () => { it('parseConstLiteral', () => { function parseConstLiteral(str: string) { + /* @ts-expect-error to be removed in v18 when all custom scalars will have default method */ return GraphQLFloat.parseConstLiteral(parseConstValue(str)); } @@ -338,6 +340,7 @@ describe('Type System: Specified scalar types', () => { it('parseConstLiteral', () => { function parseConstLiteral(str: string) { + /* @ts-expect-error to be removed in v18 when all custom scalars will have default method */ return GraphQLString.parseConstLiteral(parseConstValue(str)); } @@ -447,6 +450,7 @@ describe('Type System: Specified scalar types', () => { it('parseConstLiteral', () => { function parseConstLiteral(str: string) { + /* @ts-expect-error to be removed in v18 when all custom scalars will have default method */ return GraphQLBoolean.parseConstLiteral(parseConstValue(str)); } @@ -559,6 +563,7 @@ describe('Type System: Specified scalar types', () => { it('parseConstLiteral', () => { function parseConstLiteral(str: string) { + /* @ts-expect-error to be removed in v18 when all custom scalars will have default method */ return GraphQLID.parseConstLiteral(parseConstValue(str)); }