Skip to content

Commit 0a3e734

Browse files
authored
Merge pull request #466 from openscript-ch/455-typescript-error-for-fastifysecuresession-plugin
chore: override fastify version for types compatibility with fastifyS…
2 parents bcd6d9c + fa4ae49 commit 0a3e734

File tree

4 files changed

+11
-26
lines changed

4 files changed

+11
-26
lines changed

.changeset/empty-meals-clean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@quassel/backend": patch
3+
---
4+
5+
Override fastify version for type compatibility

apps/backend/src/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ async function bootstrap() {
1919
app.enableShutdownHooks();
2020
app.useGlobalPipes(new ValidationPipe());
2121
app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector)));
22-
// TODO: Remove `as any` when type definitions of "@fastify/secure-session" package are fixed
23-
/* eslint-disable @typescript-eslint/no-explicit-any */
24-
await app.register(fastifySecureSession as any, {
22+
23+
await app.register(fastifySecureSession, {
2524
expiry: configService.get("session.expiry"),
2625
cookieName: configService.get("session.cookieName"),
2726
secret: configService.get("session.secret"),

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"unrs-resolver"
5252
],
5353
"overrides": {
54-
"vite": "7.1.2"
54+
"vite": "7.1.2",
55+
"fastify": "5.5.0"
5556
}
5657
}
5758
}

pnpm-lock.yaml

Lines changed: 2 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)