Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: polyfill event target for old Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Oct 24, 2022
1 parent 79b0ddc commit 227d649
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -104,6 +104,7 @@
"@types/gapi.client.sheets": "4.0.20201029",
"@types/google.picker": "0.0.39",
"@types/tinycolor2": "1.4.2",
"@ungap/event-target": "^0.2.3",
"apollo-link-sentry": "3.1.2",
"apollo-upload-client": "17.0.0",
"array-move": "4.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/util/event.ts
@@ -1,3 +1,5 @@
import EventTarget from "@ungap/event-target";

export type EventCallback<T extends any[] = any[]> = (...args: T) => void;
export type EventEmitter<E extends { [P in string]: any[] } = { [P in string]: any[] }> = <
T extends keyof E,
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -4987,6 +4987,11 @@
"@typescript-eslint/types" "5.36.1"
eslint-visitor-keys "^3.3.0"

"@ungap/event-target@^0.2.3":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@ungap/event-target/-/event-target-0.2.3.tgz#be682c681126dca2371c4e1a1721f8e8bb400905"
integrity sha512-7Bz0qdvxNGV9n0f+xcMKU7wsEfK6PNzo8IdAcOiBgMNyCuU0Mk9dv0Hbd/Kgr+MFFfn4xLHFbuOt820egT5qEA==

"@vitejs/plugin-react@2.0.0", "@vitejs/plugin-react@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-2.0.0.tgz#12decd097773a00620e44b780b1d2c00df101449"
Expand Down

0 comments on commit 227d649

Please sign in to comment.