mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 10:27:03 -04:00
chore: update deps
This commit is contained in:
parent
3b4879f9d9
commit
d0a40bc0ed
5 changed files with 241 additions and 315 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue