/
Mikhail823
/
todo
Обзор
Документация
Войти
/
Mikhail823
/
todo
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/react-redux/src/connect/invalidArgFactory.ts
14 строк
407 B
Mikhail Popov
j
23 фев 2026, 16:12
23 фев 2026, 16:12
ff7232a
Код
Авторство
О чём код?
import type { Action, Dispatch } from 'redux' export function createInvalidArgFactory(arg: unknown, name: string) { return ( dispatch: Dispatch<Action<string>>, options: { readonly wrappedComponentName: string }, ) => { throw new Error( `Invalid value of type ${typeof arg} for ${name} argument when connecting component ${ options.wrappedComponentName }.`, ) } }