fix: lint warning

This commit is contained in:
Baptiste Grob
2021-01-22 12:56:52 +01:00
parent d9576b4afe
commit 7e39d7c283

View File

@@ -18,7 +18,10 @@ import {
AlertDialogLabel,
} from '@reach/alert-dialog';
function useAutorun(view: (r: IReactionPublic) => any, opts?: IAutorunOptions) {
function useAutorun(
view: (r: IReactionPublic) => unknown,
opts?: IAutorunOptions
) {
useEffect(() => autorun(view, opts), [view, opts]);
}