Skip to content

fix: update slugify.d.ts to use namespace instead of module (TS1540)#206

Open
kongvut wants to merge 1 commit intosimov:masterfrom
kongvut:fix/typescript-namespace
Open

fix: update slugify.d.ts to use namespace instead of module (TS1540)#206
kongvut wants to merge 1 commit intosimov:masterfrom
kongvut:fix/typescript-namespace

Conversation

@kongvut
Copy link

@kongvut kongvut commented Mar 3, 2026

Summary:

This PR fixes a TypeScript compilation error (TS1540) where the compiler complains about using the module keyword for a namespace declaration in slugify.d.ts.

Error Details:

error TS1540: A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.

Changes:

  • Changed declare module slugify to declare namespace slugify in slugify.d.ts

This change ensures compatibility with modern TypeScript versions (5.x+) while maintaining the existing type definitions.

Close TS1540 error where 'module' keyword is deprecated for namespace declarations.
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