Skip to content

Commit

Permalink
fix: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperse-net committed May 23, 2024
1 parent 9546d7e commit ca2f48d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/next-auth/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"baseUrl": "./src",
"jsx": "preserve",
"allowJs": false,
"noImplicitAny": true,
"noEmit": false,
"incremental": true,
"paths": {},
Expand Down
1 change: 1 addition & 0 deletions packages/next-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"baseUrl": "./src",
"jsx": "preserve",
"allowJs": false,
"noImplicitAny": true,
"noEmit": false,
"incremental": true,
"paths": {},
Expand Down
1 change: 1 addition & 0 deletions packages/next-env/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"baseUrl": "./src",
"jsx": "preserve",
"allowJs": false,
"noImplicitAny": true,
"noEmit": false,
"incremental": true,
"paths": {},
Expand Down
6 changes: 3 additions & 3 deletions packages/next-graphql/tests/fetch-upload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getBooks, usersData } from './mock-data.js';
import { startTestAppServer } from './test-server.js';

describe('Basic fetch of graphql fetch', () => {
let port, app;
let port: any, app: any;

beforeAll(async () => {
({ port, app } = await startTestAppServer());
Expand All @@ -30,7 +30,7 @@ describe('Basic fetch of graphql fetch', () => {
authTokenHeaderKey: 'auth-token',
});

const response = await fetcher.fetch<{ books }>(
const response = await fetcher.fetch<{ books: any }>(
`{ books { id, title, author } }`,
{}
);
Expand All @@ -48,7 +48,7 @@ describe('Basic fetch of graphql fetch', () => {
});

await expect(() =>
fetcher.fetch<{ books }>(`{ books }`, {})
fetcher.fetch<{ books: any }>(`{ books }`, {})
).rejects.toThrowError(
'Field "books" of type "[Book!]!" must have a selection of subfields. Did you mean "books { ... }"?'
);
Expand Down
1 change: 1 addition & 0 deletions packages/next-graphql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compilerOptions": {
"baseUrl": "./src",
"jsx": "preserve",
"noImplicitAny": true,
"allowJs": false,
"noEmit": false,
"incremental": true,
Expand Down

0 comments on commit ca2f48d

Please sign in to comment.