(arg: unknown, name: string)
| 1 | import type { Action, Dispatch } from 'redux' |
| 2 | |
| 3 | export function createInvalidArgFactory(arg: unknown, name: string) { |
| 4 | return ( |
| 5 | dispatch: Dispatch<Action<string>>, |
| 6 | options: { readonly wrappedComponentName: string }, |
| 7 | ) => { |
| 8 | throw new Error( |
| 9 | `Invalid value of type ${typeof arg} for ${name} argument when connecting component ${ |
| 10 | options.wrappedComponentName |
| 11 | }.`, |
| 12 | ) |
| 13 | } |
| 14 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…