react-polymorphic-types
react-polymorphic-types copied to clipboard
fix: missing types with "moduleResolution": "Node16"
Since the filename pointed at by default and import (empty) is not identical to the filename of the d.ts file (index), the top level types field is not enough when using "moduleResolution": "Node16" and TypeScript 4.7.
To fix this, types must be explicitly specified inside the exports object in addition to the top level types field.
See firebase/firebase-js-sdk#6300 and microsoft/playwright#14428
Hi @kripod, any chance of this getting merged and released? We also ran into this need.