fix(nova-react-test-utils): explicit export type of EventingInterceptorFn #170
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The d.ts emitter failed when re-exporting a specialized
EventingInterceptor.For:
It’s a .d.ts–emitter issue. Where exporting a value whose inferred
type, after we specialize the generic with
typeof cardEvents, ends upmentioning types that TypeScript can only refer to via a non‑portable path like
../../../../<package>/node_modules/@nova/types/lib. When TS tries to printyour package’s .d.ts, it can’t name that type with a stable module specifier, so
it asks you to add an explicit, portable annotation.
We get the error:
This error often appears when a type is only reachable through a transitive package's
node_modules.Solution
So we get a monomorphic type when used like: