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

Typescript 5.5 has stricter *.d.ts behavior, requiring update #355

Open
jasikpark opened this issue Jun 7, 2024 · 0 comments
Open

Typescript 5.5 has stricter *.d.ts behavior, requiring update #355

jasikpark opened this issue Jun 7, 2024 · 0 comments

Comments

@jasikpark
Copy link

https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-rc/#libdts-changes

^^ with the update to how TS resolves imports, this tool seems to need a change in how it generates the exports. I can't rely on the "default export" in this mode anymore

test-setup/MultiStory.tsx:5:8 - error TS1192: Module '"/Users/calebjasik/Git/defined.net/webclient/test-setup/MultiStory.module.css"' has no default export.

5 import styles from './MultiStory.module.css';
         ~~~~~~
declare const styles: {
  readonly "ComponentGrid": string;
  readonly "MultiStory": string;
  readonly "MultiStory___noPadding": string;
  readonly "MultiStory_cell": string;
};
export = styles;

export=styles doesn't seem to work to indicate a default export when type="module" in package.json

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

No branches or pull requests

1 participant