From d0a40bc0edb1f7c97c1953a860bc8ee90600ed01 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 28 Nov 2022 15:59:15 +0100 Subject: chore: update deps --- src/utils/onceDefined.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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>( +export function onceDefined>( target: T, property: P, callback: (v: P extends keyof T ? T[P] : any) => void ): void { const propertyAsAny = property as any; -- cgit