generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
help wantedExtra attention is neededExtra attention is neededinternalInternal issues & discussionsInternal issues & discussions
Description
We use vitest-package-exports
to check the stability of exported runtime symbols, which is neat, but we could extend the concept to checking what types the API exposes, to make sure they are both stable and invariant (ie: detect additions, suppressions, or modifications of exported types).
This is particularly helpful as some files (eg: parsers.ts) barrel-expose everything exported within the file.
What this would look like is unknown, but could be:
- Comparing against a snapshot of the bundled .d.ts (might break often due to chunks changing hash when the runtime content changes)
- Bundling a single-file .d.ts that is stable enough to be used in a snapshot comparison
- Some other unknown libraries.
This would likely be better to be contributed back into antfu/vitest-package-exports#1
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededinternalInternal issues & discussionsInternal issues & discussions