Bug: React-Map createCustomEqual no overloads matches call.
@amuramoto がすでに取り組んでいます。
2022年7月8日 から。
評価
この issue はまだ評価されていません。
説明
Operating system
Windows 10 21H2
Browser Version
Firefox 102.0
How severe is the bug?
high
Bug description
Checking the custom hook for deep comparisons, the method createCustomEqual in deepCompareEqualsForMaps (line 213, in react-maps/docs/index.tsx), does not recognize both a and b:
(deepEqual) => (a: any, b: any)
throws the following error:
No overload matches this call.
Overload 1 of 2, '(getComparatorOptions: GetComparatorOptions<undefined>): <A, B>(a: A, b: B, meta?: undefined) => boolean', gave the following error.
Value of type '(a: any, b: any) => any' has no properties in common with type 'Partial<CreateComparatorCreatorOptions<undefined>>'. Did you mean to call it?
Overload 2 of 2, '(getComparatorOptions: GetComparatorOptions<undefined>): <A, B>(a: A, b: B, meta?: undefined) => boolean', gave the following error.
Value of type '(a: any, b: any) => any' has no properties in common with type 'Partial<CreateComparatorCreatorOptions<undefined>>'. Did you mean to call it?ts(2769),
index.d.ts(16, 42): The expected type comes from the return type of this signature.
index.d.ts(16, 42): The expected type comes from the return type of this signature.
And also the deepEqual(a , b); call throws the error:
This expression is not callable.
Type 'CreateComparatorCreatorOptions<undefined>' has no call signatures.ts(2349)
I guess both things are related to some Typescript error using fast-equals library. I also tried cloning the repository and the same problems are still showing up.
Steps to reproduce
No response
Console log output
No response
- 主要言語
- TypeScript
- スター
- 804
- フォーク
- 826
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googlemaps/js-samples のほかの issue
-
Advanced Markers Animation Unused Variable対応中かも @treckstar が 832 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
googlemaps/js-samples#1794 ·
-
Driverオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
googlemaps/js-samples#1940 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
googlemaps/js-samples#1932 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
googlemaps/js-samples#1914 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
googlemaps/js-samples#1827 · コメント 1 件 ·
googlemaps/js-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
home-assistant/frontend#55841 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
lingdojo/kana-dojo#33905 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
bug(semester-planning): the edit application dialog cannot save with an empty «Annet fra bedriften»オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
blocklist removal
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
MetaMask/eth-phishing-detect#311215 ·
メンテナーはふだん 1 日以内に返信
-
Explore filter: multi-select value list with allowNewOptions stops accepting values and drops earlier ones対応中かも @isaac-jaynes-imperva が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/superset#46146 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信