-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feature) issue #7 - add typescript types + improved example with bou…
…nds and useSupercluster
- Loading branch information
Giorgia Bosellom
committed
Dec 2, 2022
1 parent
51d9b8c
commit 89bcd70
Showing
41 changed files
with
498 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default GoogleMap; | ||
declare const GoogleMap: any; | ||
//# sourceMappingURL=google-map.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export function useGoogleMaps({ apiKey, libraries }: { | ||
apiKey: any; | ||
libraries?: any[]; | ||
}): "idle" | "loading" | "ready" | "error"; | ||
//# sourceMappingURL=useGoogleMaps.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export default useMemoCompare; | ||
/** | ||
* A hook that compares the previous and current values of a reference. | ||
* @param {any} value - the current value of the reference | ||
* @param {function} compare - a function that compares the previous and current values | ||
* @returns {any} the previous value of the reference | ||
* @ref https://usehooks.com/useMemoCompare/ | ||
*/ | ||
declare function useMemoCompare(next: any, compare: Function): any; | ||
//# sourceMappingURL=useMemoCompare.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export function useScript(script?: { | ||
src: string; | ||
attributes?: any; | ||
callbacks?: { | ||
onLoadCallback?: Function; | ||
onErrorCallback?: Function; | ||
}; | ||
elementIdToAppend?: string; | ||
}): "idle" | "loading" | "ready" | "error"; | ||
//# sourceMappingURL=useScript.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from "./google-map"; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.