Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix the .d.cts default export type #458

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

kricsleo
Copy link

resolves #457

@kricsleo
Copy link
Author

I've tested against the ./example/1.zero-config and the output of utils.d.cts has changed from:

declare function sum(a: number, b: number): number;

export { sum as default };

to:

declare function sum(a: number, b: number): number;

export = sum;

This is the expected types in pair with the utils.cjs output:

'use strict';

function sum(a, b) {
  return a + b;
}

module.exports = sum;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The default export declaring in .d.cts is not accurate.
1 participant