You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-22 09:02:11 +03:00
Typescript updates (#9658)
* Typescript updates * Update @types/node * Fix more types
This commit is contained in:
committed by
GitHub
parent
baaa9f5dd2
commit
d258402186
@@ -28,7 +28,7 @@ export const useTimeoutToggle = (defaultValue: boolean, timeoutMs: number) => {
|
||||
|
||||
const toggle = () => {
|
||||
setValue(!defaultValue);
|
||||
timeoutId.current = setTimeout(() => setValue(defaultValue), timeoutMs);
|
||||
timeoutId.current = window.setTimeout(() => setValue(defaultValue), timeoutMs);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user