chore(resources): General Linting

This commit is contained in:
Taso committed 2021-06-08 12:36:10 -04:00
1 parent 457926263d
commit f1012958e2
15 files changed
+25 -34

No files matched your search

+2 -2
View File
@@ -71,7 +71,7 @@ export const RegisterNuiCB = <T = any>(event: string, callback: CallbackFn<T>) =
* for the response.
* @param event - The event name to listen for
*/
export const RegisterNuiProxy = <T = any>(event: string) => {
export const RegisterNuiProxy = (event: string) => {
RegisterNuiCallbackType(event);
on(`__cfx_nui:${event}`, async (data: unknown, cb: Function) => {
try {
@@ -91,6 +91,6 @@ type WrapperNetEventCb = <T extends any[]>(...args: T) => void;
* @param event - The event name to listen to
* @param cb - The callback function to execute
*/
export const onNpwdEvent = <T = any>(event: string, cb: WrapperNetEventCb) => {
export const onNpwdEvent = (event: string, cb: WrapperNetEventCb) => {
onNet(event, cb);
};