aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-28 15:59:15 +0100
committerVendicated <vendicated@riseup.net>2022-11-28 15:59:15 +0100
commitd0a40bc0edb1f7c97c1953a860bc8ee90600ed01 (patch)
tree895ab9fd89789b42c554f2413b99905b077538ba /src/utils
parent3b4879f9d9466c346385e983898efb826072ec6f (diff)
downloadVencord-d0a40bc0edb1f7c97c1953a860bc8ee90600ed01.tar.gz
Vencord-d0a40bc0edb1f7c97c1953a860bc8ee90600ed01.tar.bz2
Vencord-d0a40bc0edb1f7c97c1953a860bc8ee90600ed01.zip
chore: update deps
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/onceDefined.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/onceDefined.ts b/src/utils/onceDefined.ts
index 4ee8fa6..dc0e169 100644
--- a/src/utils/onceDefined.ts
+++ b/src/utils/onceDefined.ts
@@ -27,7 +27,7 @@ import type { LiteralUnion } from "type-fest";
*
* @example onceDefined(window, "webpackChunkdiscord_app", wpInstance => wpInstance.push(...));
*/
-export function onceDefined<T, P extends LiteralUnion<keyof T, PropertyKey>>(
+export function onceDefined<T extends object, P extends LiteralUnion<keyof T, PropertyKey>>(
target: T, property: P, callback: (v: P extends keyof T ? T[P] : any) => void
): void {
const propertyAsAny = property as any;