Skip to content

types!: port flash to registration-scoped typing model#145

Open
mcollina wants to merge 4 commits intomainfrom
feat/typed-flash
Open

types!: port flash to registration-scoped typing model#145
mcollina wants to merge 4 commits intomainfrom
feat/typed-flash

Conversation

@mcollina
Copy link
Member

@mcollina mcollina commented Mar 15, 2026

Summary

Port @fastify/flash to the registration-scoped typing approach and remove
migration crutches in final validation.

Highlights:

  • plugin typing updated to model request/reply decorator effects from
    registration;
  • flash internals tightened (unknown/guards instead of loose typing);
  • tests updated to use explicit local narrowing helpers;
  • final state validated without test compat bridge and without skipLibCheck.

Dependency

This PR depends on Fastify core typing changes:

Validation

  • npm test
  • npm run build

Context

Refs fastify/fastify#5061.

Use the fastify-plugin PR branch while validating Fastify typed-decorator exports.
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