Skip to content

fix(index.d.ts): change declare module to declare namespace for tsgo#120

Open
fuleinist wants to merge 1 commit into
gemini-testing:masterfrom
fuleinist:fix/ts-namespace
Open

fix(index.d.ts): change declare module to declare namespace for tsgo#120
fuleinist wants to merge 1 commit into
gemini-testing:masterfrom
fuleinist:fix/ts-namespace

Conversation

@fuleinist
Copy link
Copy Markdown

Summary

Fixes #118 — TypeScript 5.8+ (tsgo) rejects declare module syntax in ambient .d.ts declarations.

index.d.ts(8,16): error TS1540: A 'namespace' declaration should not be
declared using the 'module' keyword. Please use the 'namespace' keyword instead.

Changes

index.d.ts:

  • Changed declare module looksSame { to declare namespace looksSame { (line 8).

See microsoft/TypeScript#62876,
microsoft/typescript-go#2760.

…compatibility

Issue gemini-testing#118: TypeScript 5.8+ (tsgo) rejects 'declare module' for ambient
module declarations in .d.ts files. The correct syntax is 'declare
namespace'.

See microsoft/TypeScript#62876, microsoft/typescript-go#2760
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.

declare module in index.d.ts should be declare namespace

1 participant