Skip to content

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

Open
mattlewis92 wants to merge 2 commits intosplitio:developmentfrom
mattlewis92:patch-1
Open

fix: use namespace instead of module keyword for TypeScript 6/7 compatibility#173
mattlewis92 wants to merge 2 commits intosplitio:developmentfrom
mattlewis92:patch-1

Conversation

@mattlewis92
Copy link

@mattlewis92 mattlewis92 commented Mar 4, 2026

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
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