mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 18:37:04 -04:00
Fix lib typings with errors
This commit is contained in:
parent
1f67203183
commit
1f0635ffc8
6 changed files with 14 additions and 18 deletions
|
@ -131,7 +131,7 @@ function shouldIgnoreValue(value: any) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function makePropertyNonEnumerable(target: Object, key: PropertyKey) {
|
||||
function makePropertyNonEnumerable(target: Record<PropertyKey, any>, key: PropertyKey) {
|
||||
const descriptor = Object.getOwnPropertyDescriptor(target, key);
|
||||
if (descriptor == null) return;
|
||||
|
||||
|
@ -499,7 +499,7 @@ export function findExportedComponentLazy<T extends object = any>(...props: Prop
|
|||
});
|
||||
}
|
||||
|
||||
function getAllPropertyNames(object: Object, includeNonEnumerable: boolean) {
|
||||
function getAllPropertyNames(object: Record<PropertyKey, any>, includeNonEnumerable: boolean) {
|
||||
const names = new Set<PropertyKey>();
|
||||
|
||||
const getKeys = includeNonEnumerable ? Object.getOwnPropertyNames : Object.keys;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue