Fix ESLint issues
This commit is contained in:
@@ -10,7 +10,7 @@ const State = {
|
||||
type State = keyof typeof State;
|
||||
|
||||
export function AsyncWidget(p: {
|
||||
loadKey: any;
|
||||
loadKey: unknown;
|
||||
load: () => Promise<void>;
|
||||
errMsg: string;
|
||||
build: () => React.ReactElement;
|
||||
@@ -19,7 +19,7 @@ export function AsyncWidget(p: {
|
||||
}): React.ReactElement {
|
||||
const [state, setState] = useState<number>(State.Loading);
|
||||
|
||||
const counter = useRef<any>(null);
|
||||
const counter = useRef<unknown>(null);
|
||||
|
||||
const load = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user