Skip to content

Commit c49bc5e

Browse files
authored
adapt interface of return type of setTimeout for both NodeJS and FrontEnd (#293)
1 parent bd8fcca commit c49bc5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dialog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function Dialog(props: IDialogPropTypes) {
8585

8686
// >>> Content
8787
const contentClickRef = useRef(false);
88-
const contentTimeoutRef = useRef<NodeJS.Timeout>();
88+
const contentTimeoutRef = useRef<ReturnType<typeof setTimeout>>();
8989

9090
// We need record content click incase content popup out of dialog
9191
const onContentMouseDown: React.MouseEventHandler = () => {

0 commit comments

Comments
 (0)