Skip to content

fix(csv-stringify): isolate browser TypeScript declarations - #515

Open
Strohutt wants to merge 1 commit into
adaltas:masterfrom
Strohutt:fix/browser-types
Open

Strohutt wants to merge 1 commit into
adaltas:masterfrom
Strohutt:fix/browser-types

Conversation

@Strohutt

Copy link
Copy Markdown

Importing csv-stringify/browser/esm pulls Node ambient types into DOM projects, changing setTimeout from number to NodeJS.Timeout.

Generate browser declarations against the bundled stream and Buffer contracts, keeping CSV options and overloads in one source. Preserve Node ESM, CommonJS and legacy resolution. Fixes #476.

Validation: the original DOM reproduction fails before and passes after; isolated DOM/Node type checks, Rollup, lint and formatting pass. On Windows, 191 runtime tests pass with one existing pending test; the sample and pipe suites are excluded for their existing file-URL and /tmp path failures.

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.

csv-stringify Browser ESM entry points pollute global types with Node types

1 participant