Skip to content

Commit

Permalink
Fix 'use before assign' in type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
queicherius committed Nov 29, 2024
1 parent 845ffcd commit 794b657
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,9 @@ describe('prisma-relay-cursor-connection', () => {
// These are not real tests which run, but rather a way to ensure that the types are correct
// when tsc runs
const typecheckForInferredTypes = async () => {
let client: PrismaClient
// Default will get the inferred types from prisma
const client = new PrismaClient()

// Default will get the inferred types from prisma
;(await findManyCursorConnection(
(args) => client.todo.findMany(args),
() => client.todo.count(),
Expand Down

0 comments on commit 794b657

Please sign in to comment.