1nwf / Produx-v2

Detected usage of the any type JS-0323
Anti-pattern
Critical
11 occurrences in this check
Unexpected any. Specify a different type
31            formData.append('email', userInfo.email)
32            formData.append('password', userInfo.password)
33            formData.append('pfp', userInfo.pfp)
34            await createUser(formData).then((res: any) => {35                localStorage.setItem('token', res.data.token)
36                dispatch(changeAuthStatus(true))
37                window.location.reload()
Unexpected any. Specify a different type
16
17    const submitHandler = async (e: any) => {
18        await signIn(userInfo)
19            .then((res: any) => {20                localStorage.setItem('token', res.data.token)
21                dispatch(changeAuthStatus(true))
22                window.location.reload()
Unexpected any. Specify a different type
14        password: '',
15    })
16
17    const submitHandler = async (e: any) => {18        await signIn(userInfo)
19            .then((res: any) => {
20                localStorage.setItem('token', res.data.token)
Unexpected any. Specify a different type
10        Changelogs: { icon: '🔑', color: '#FF4D00' },
11        Questions: { icon: '🤨', color: '#FF4D00' },
12    }
13    const handleChannelChange = (e: any) => {14        e.preventDefault()
15    }
16    return (
 70    const [msg, setMsg] = useState<string>('')
 71    const [sysMsg, setSysMsg] = useState<any>(null)
 72    const msgListDiv = useRef<HTMLDivElement>(null)
 73    const sendMsg = (e: any) => { 74        e.preventDefault()
 75        if (msg.trim() !== '') {
 76            sendMessage(msg)
 68        }
 69    }, [data])
 70    const [msg, setMsg] = useState<string>('')
 71    const [sysMsg, setSysMsg] = useState<any>(null) 72    const msgListDiv = useRef<HTMLDivElement>(null)
 73    const sendMsg = (e: any) => {
 74        e.preventDefault()
 53        },
 54        retryOnError: true,
 55    })
 56    const [msgs, setMsgs] = useState<any>([]) 57    useEffect(() => {
 58        getMessages({
 59            productId,
Unexpected any. Specify a different type
 11    owner,
 12}: {
 13    show: boolean
 14    setShow: any 15    productName: string
 16    owner: boolean
 17}) {
Unexpected any. Specify a different type
 9    productIcon,
10}: {
11    show: boolean
12    setShow: any13    productName: string
14    productIcon: string | null
15}) {
Unexpected any. Specify a different type
221    productName: string
222    productID: number
223    isShown: boolean
224    setIsShown: any225}) => {
226    const closeHandler = () => {
227        setIsShown(false)
Unexpected any. Specify a different type
 19    const [trigger, result, lastPromiseInfo] = useLazyGetUserInfoQuery()
 20    const [updateUser, updateUserReqInfo] = useUpdateUserMutation()
 21    const [pfp, setPfp] = useState<File>()
 22    const updateHandler = async (e: any) => { 23        e.preventDefault()
 24        if (userInfo) {
 25            const formData = new FormData()