|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
407 bytes
|
| Line | |
|---|
| 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 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.