Skip to content

fix(types): add types-reference to google.maps#520

Merged
usefulthink merged 1 commit intovisgl:mainfrom
usefulthink:fix/types-reference
Sep 8, 2024
Merged

fix(types): add types-reference to google.maps#520
usefulthink merged 1 commit intovisgl:mainfrom
usefulthink:fix/types-reference

Conversation

@usefulthink
Copy link
Collaborator

Typescript versions prior to 5.5 automatically emitted triple-slash directives for types used in the exported definitions. This was changed in 5.5, which could lead to situations where the google.maps types aren't properly picked up in a project using this package.

Adding a type-reference ourselves should help in those cases.

See https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#simplified-reference-directive-declaration-emit

fixes #519

Typescript versions prior to 5.5 automatically emitted triple-slash directives for types used in the exported definitions. This was changed in 5.5, which could lead to situations where the google.maps types aren't properly picked up in a project using this package.

Adding a type-reference ourselves should help in those cases.

See https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#simplified-reference-directive-declaration-emit

fixes visgl#519
@usefulthink usefulthink merged commit ed19636 into visgl:main Sep 8, 2024
@usefulthink usefulthink deleted the fix/types-reference branch September 8, 2024 17:52
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.

[Bug] "Cannot find namespace google" on version => 1.1.1

1 participant