Files
NapCatQQ/.pnpm-store/v3/files/79/b9264c8785c5a9065e08c3c9dbd3ced39cab2b2933016bc4f56c981f498a4b97397372fa4d1104aeaa75875c1c6aa4dc614a85ea07f276de4f713bd657ab1e
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
407 B
Plaintext

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
}.`,
)
}
}