googlemaps / googlemaps/js-api-loader
reference type google.maps directive missing from 1.6.10
- Lingua principale
- TypeScript
- Stelle
- 449
- Fork
- 74
- Merge medio
- 1m
- PR unite (30g)
- 21
Descrizione
Hey there,
Up until v1.6.8 of this package the following line was included in `dist/index.d.ts`:
```js
///
```
Since updating to v1.6.10 I noticed this line has been removed. This is causing breakage across our CI/CD workflows with code like this:
```
// my-map.ts
let map: google.maps.Map;
```
Now erroring with:
```
"error TS2503: Cannot find namespace 'google'."
```
Looking through the changelog I can't really see why the line was removed. Was this intentional or an unintentional side effect of a dependency update?
Adding the removed type reference to my-map.ts resolves the issue but it'd be good to know if this is planned to be added back in before I have to go update a load of different projects 😅
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Compare dist/index.d.ts between v1.6.8 and v1.6.10, starting with the missing google.maps reference directive and the dependency-update context. Verify the TypeScript example using google.maps.Map, and consider the issue done when the declaration is available again without adding a per-project reference.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 72/100