Skip to content

fix: keep winston-transport declaration importable without esModuleInterop - #311

Merged
firecow merged 1 commit into
mainfrom
fix/transport-declaration-import
Oct 26, 2026
Merged

firecow merged 1 commit into
mainfrom
fix/transport-declaration-import

Conversation

@firecow

@firecow firecow commented Oct 26, 2026

Copy link
Copy Markdown
Owner

The default import of winston-transport from the TypeScript 6 upgrade ended up in the published transport.d.ts and fails to type-check for consumers without esModuleInterop, so it now uses import = require, which restores the 1.4.0 emit, with ESLint allowing that form and ignoring generated declaration files.

@firecow firecow self-assigned this Oct 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

@firecow
firecow merged commit 99f334c into main Oct 26, 2026
9 checks passed
@firecow
firecow deleted the fix/transport-declaration-import branch October 26, 2026 09:34
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.

1 participant