chore: update deps

This commit is contained in:
Vendicated 2022-11-28 15:59:15 +01:00
parent 3b4879f9d9
commit d0a40bc0ed
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
5 changed files with 241 additions and 315 deletions

View file

@ -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;