Skip to content

types!: align cors with registration-scoped typing model#396

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

types!: align cors with registration-scoped typing model#396
mcollina wants to merge 2 commits intomainfrom
feat/typed-cors

Conversation

@mcollina
Copy link
Member

Summary

Update @fastify/cors typing/tests/docs for the registration-scoped typing
migration.

@fastify/cors is the control case in this stack (no decorator widening), so
this PR ensures registration keeps instance shape stable while still aligning
with the new core model.

Changes include:

  • Type tests asserting instance shape is preserved after registration;
  • README TypeScript guidance aligned with registration-scoped typing.

Dependency

This PR depends on the Fastify core typing migration:

Validation

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

Context

Refs fastify/fastify#5061.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant