reference type google.maps directive missing from 1.6.10

オープン 初心者向け
#1,002 コメント 7 件 リアクション 23 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
api

調査の方向性

v1.6.8 と v1.6.10 の dist/index.d.ts を比較し、欠落している google.maps 参照ディレクティブと依存関係更新のコンテキストから確認を始めます。google.maps.Map を使用する TypeScript の例を検証し、プロジェクトごとの参照を追加せずに declaration が再び利用可能になった時点で issue 完了とします。

索引モデルが issue の本文から書いたものです。

説明

Hey there,

Up until v1.6.8 of this package the following line was included in dist/index.d.ts:

/// <reference types="google.maps" />

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 😅

主要言語
TypeScript
スター
451
フォーク
75
平均マージ
2分
マージ済み PR(30日)
31

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googlemaps/js-api-loader のほかの issue

googlemaps/js-api-loader の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。