Huthaifa-Dev / project

Detected usage of the any type JS-0323
Anti-pattern
Critical
a month ago2 years old
Unexpected any. Specify a different type
 4import { MemoryRouter, Route, Routes } from "react-router-dom";
 5import { Provider } from "react-redux";
 6import { store } from "../../redux";
 7const Default = (args: any) => { 8  return (
 9    <Provider store={store}>
10      <MemoryRouter>
Unexpected any. Specify a different type
11    }
12  });
13
14  const setValue = (value: any) => {15    try {
16      const valueToStore =
17        value instanceof Function ? value(storedValue) : value;
Unexpected any. Specify a different type
 1import React from "react";
 2
 3const useLocalStorage = (key: string, initialValue: any) => { 4  const [storedValue, setStoredValue] = React.useState(() => {
 5    try {
 6      const item = window.localStorage.getItem(key);
Unexpected any. Specify a different type
 9  onLogin: () => {},
10  onLogout: () => {},
11};
12const Default = (args: any) => {13  return (
14    <MemoryRouter>
15      <Routes>