gemini-testing / gemini-testing/looks-same

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

Open Beginner friendly
#118 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
827
Forks
55
PR merge metrics
No merged PRs in 30d

Description

`index.d.ts` line 8 uses `declare module looksSame` which causes the following error using the new `tsgo` TypeScript compiler.

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

Fix:

```diff
-declare module looksSame {
+declare namespace looksSame {
```

See https://github.com/microsoft/TypeScript/pull/62876, https://github.com/microsoft/typescript-go/pull/2760, https://github.com/microsoft/typescript-go/issues/2873

Contributor guide

No contributing guide indexed for this repository

Research direction

Open index.d.ts and inspect line 8, where the looksSame declaration is defined. Check the declaration with the new tsgo TypeScript compiler and confirm that replacing the module declaration with a namespace declaration removes TS1540.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.