source: node_modules/react-redux/src/connect/invalidArgFactory.ts@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 407 bytes
Line 
1import type { Action, Dispatch } from 'redux'
2
3export 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}
Note: See TracBrowser for help on using the repository browser.