Skip to content

Commit

Permalink
chore: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 15, 2024
1 parent e74f2c6 commit a6df191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@types/node": "^22.0.0",
"c8": "^10.1.2",
"fastify": "^5.0.0",
"neostandard": "^0.11.9",
"neostandard": "^0.12.0",
"rimraf": "^6.0.1",
"tsd": "^0.31.1"
},
Expand Down
6 changes: 3 additions & 3 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const app = fastify()

type Done = (error?: Error) => void

app.register(fastifyAuth).after((err) => {
app.register(fastifyAuth).after((_err) => {
app.auth([
(request, reply, done) => {
expectType<FastifyRequest>(request)
Expand Down Expand Up @@ -88,7 +88,6 @@ export const usersMutationAccessPolicy =
throw new Error(request.params.userId)
}

// @ts-expect-error
async function usersController (fastify: FastifyInstance): Promise<void> {
fastify.patch<{
Params: { userId: string };
Expand All @@ -103,8 +102,8 @@ async function usersController (fastify: FastifyInstance): Promise<void> {
async (req, res) => ({ success: true })
)
}
await usersController(app)

// @ts-expect-error
async function usersControllerV2 (fastify: FastifyInstance): Promise<void> {
fastify.patch<{
Params: { userId: string };
Expand All @@ -117,3 +116,4 @@ async function usersControllerV2 (fastify: FastifyInstance): Promise<void> {
async (req, res) => ({ success: true })
)
}
await usersControllerV2(app)

0 comments on commit a6df191

Please sign in to comment.