Skip to content

Commit

Permalink
adapt interface of return type of setTimeout for both NodeJS and Fron…
Browse files Browse the repository at this point in the history
…tEnd (#293)
  • Loading branch information
xifeiwu committed Oct 27, 2022
1 parent bd8fcca commit c49bc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function Dialog(props: IDialogPropTypes) {

// >>> Content
const contentClickRef = useRef(false);
const contentTimeoutRef = useRef<NodeJS.Timeout>();
const contentTimeoutRef = useRef<ReturnType<typeof setTimeout>>();

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

0 comments on commit c49bc5e

Please sign in to comment.