Skip to content

Commit

Permalink
fix(types): add types-reference to google.maps (#520)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
usefulthink authored Sep 8, 2024
1 parent d9ff08b commit ed19636
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="google.maps" preserve="true" />

export * from './components/advanced-marker';
export * from './components/api-provider';
export * from './components/info-window';
Expand Down

0 comments on commit ed19636

Please sign in to comment.