Get An Error When Adding Events To mp.events.add In JSON Format
Voxelity opened this issue · 3 comments
I'm getting an error when I try to add events in a JSON format to the mp.events.add, I understand that you recently added an overload just for this specific reason but it seems to be giving me errors. I believe this is the line of code in question,
add(events: ({ [name: string]: (...args: any[]) => void; }[])): void;
(Line 248, index.d.ts)
I would try to fix it for you cause I understand that you are probably super business, but I don't understand that much about ts definition files so I will try to read up on some of it and maybe come up with a solution, anyways thanks for all the hard work, happy coding!
Well, I seem to have fixed it, I don't know if this is the correct fix but it removed the error. What I did was this:
Orginal Line 248: add(events: ({ [name: string]: (...args: any[]) => void; }[])): void;
Possible Fix Line 248: add(events: { [name: string]: (...args: any[]) => void; }): void;
@Voxelity, thank you. I try to fix the issue in a few hours
Fixed