Skip to content

Fix broken declaration file#40

Merged
sombriks merged 1 commit intosombriks:main-1xfrom
mike-north:patch-1
May 1, 2025
Merged

Fix broken declaration file#40
sombriks merged 1 commit intosombriks:main-1xfrom
mike-north:patch-1

Conversation

@mike-north
Copy link
Copy Markdown
Contributor

TypeScript doesn't allow declare directives to be used within other declare directives. It will throw

TS1038: A 'declare' modifier cannot be used in an already ambient context.

This PR causes the classes, function and value types to be exported from the declared module, allowing them to be consumed without this error being thrown

@mike-north mike-north changed the title Fix broken declaration files Fix broken declaration file May 1, 2025
@sombriks sombriks merged commit f12d605 into sombriks:main-1x May 1, 2025
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.

2 participants