-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
See: https://arethetypeswrong.github.io/?p=eslint-plugin-react-refresh%400.4.16
The package is bundled, and ends with:
var src_default = { rules, configs };
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
configs,
rules
});
This means that the output dts file should actually read export = _default;
, not export default _default;
, since an export named default
does not actually exist at runtime.
I noticed this on DT, which previously held types for this package (but will have to be deleted now that you're doing it): https://github.com/DefinitelyTyped/DefinitelyTyped/actions/runs/12118993180/job/33784693075#step:12:2663
Metadata
Metadata
Assignees
Labels
No labels