Enable strictPropertyInitialization (#11203)
This commit is contained in:
committed by
GitHub
parent
4207d182cd
commit
cfd48b36aa
@@ -19,7 +19,7 @@ import { useState } from "react";
|
||||
export const useLocalEcho = <T>(
|
||||
currentFactory: () => T,
|
||||
setterFn: (value: T) => Promise<unknown>,
|
||||
errorFn: (error: Error) => void,
|
||||
errorFn: (error: unknown) => void,
|
||||
): [value: T, handler: (value: T) => void] => {
|
||||
const [value, setValue] = useState(currentFactory);
|
||||
const handler = async (value: T): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user