mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
working typescript compiling and fixing linting issues
This commit is contained in:
1 parent
b1babd88c2
commit
3273d192c9
49 files changed
+271
-110
No files matched your search
@@ -1,8 +1,14 @@
|
||||
import { useEffect, useRef } from "react";
|
||||
import { eventNameFactory } from "../utils/nuiUtils";
|
||||
|
||||
export const useNuiEvent = (app, method, handler, options = {}) => {
|
||||
const savedHandler = useRef();
|
||||
interface IOptions {
|
||||
capture?: boolean;
|
||||
passive?: boolean;
|
||||
once?: boolean;
|
||||
}
|
||||
|
||||
export const useNuiEvent = (app, method, handler, options: IOptions = {}) => {
|
||||
const savedHandler: any = useRef();
|
||||
const { capture, passive, once } = options;
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user