Skip to content

Commit ed19636

Browse files
authored
fix(types): add types-reference to google.maps (#520)
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
1 parent d9ff08b commit ed19636

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference types="google.maps" preserve="true" />
2+
13
export * from './components/advanced-marker';
24
export * from './components/api-provider';
35
export * from './components/info-window';

0 commit comments

Comments
 (0)