Skip to content

types!: migrate jwt decorators to registration-scoped inference#397

Open
mcollina wants to merge 2 commits intomainfrom
feat/typed-jwt
Open

types!: migrate jwt decorators to registration-scoped inference#397
mcollina wants to merge 2 commits intomainfrom
feat/typed-jwt

Conversation

@mcollina
Copy link
Copy Markdown
Member

Summary

Migrate @fastify/jwt typing from global declaration-merging assumptions to
registration-scoped inference.

Changes include:

  • type surface updates in types/jwt.d.ts for plugin-applied decorators;
  • rewritten types/jwt.test-d.ts asserting decorators on registered instances;
  • README TypeScript migration notes.

Default decorator names are inferred from registration flow; advanced renamed
paths continue to use helper typing.

Dependency

This PR depends on Fastify core typing changes:

Validation

  • npm run test:typescript
  • npm run lint -- types

Context

Refs fastify/fastify#5061.

@mcollina mcollina added the semver-major Issue or PR that should land as semver major label Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-major Issue or PR that should land as semver major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant