This commit is contained in:
Nuckyz 2024-08-03 14:54:12 -03:00
parent eeb4d26812
commit 4d88a13f5e
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -44,7 +44,7 @@ function searchProtoClassField(localName: string, protoClass: any) {
const field = protoClass?.fields?.find((field: any) => field.localName === localName);
if (!field) return;
const fieldGetter = Object.values(field).find(value => typeof value === "function") as any;
const fieldGetter = Object.values<any>(field).find(value => typeof value === "function");
return fieldGetter?.();
}