Skip to content

fix: use namespace instead of module keyword for TypeScript 6/7 compatibility - #173

Merged
EmilianoSanchez merged 2 commits into
splitio:developmentfrom
mattlewis92:patch-1
Jun 26, 2026
Merged

EmilianoSanchez merged 2 commits into
splitio:developmentfrom
mattlewis92:patch-1

Conversation

@mattlewis92

@mattlewis92 mattlewis92 commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

JS Browser SDK

What did you accomplish?

TypeScript 6+ (and tsgo from 7.0.0-dev.20260221.1) now errors on non-ambient:

node_modules/.pnpm/@splitsoftware+splitio-browserjs@1.4.0/node_modules/@splitsoftware/splitio-browserjs/types/index.d.ts:9:16 - error TS1540: A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.

This was deprecated in microsoft/TypeScript#62876 (merged Dec 2025).

How do we test the changes introduced in this PR?

The module and namespace keywords are functionally identical for
this use case, so this is a purely syntactic change with no runtime
or type-level impact.

Extra Notes

@mattlewis92
mattlewis92 requested a review from a team as a code owner March 4, 2026 13:05
@EmilianoSanchez
EmilianoSanchez merged commit 57807d4 into splitio:development Jun 26, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants