Skip to content

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

Open
@jasikpark

Description

@jasikpark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions