Skip to content

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

Description

@audun-cobrief

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:

-declare module looksSame {
+declare namespace looksSame {

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions