Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 30, 2024
1 parent 4317476 commit b14f5fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/type/__tests__/scalars-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -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));
}

Expand Down

0 comments on commit b14f5fd

Please sign in to comment.