forked from ddrilling/asb_cloud_front
Исправлен тип возвращаемого сообщения об ошибке на ReactNode в invokeWebApiWrapperAsync
This commit is contained in:
parent
081df563b2
commit
f268260df5
@ -36,7 +36,7 @@ type asyncFunction = (...args: any) => Promise<any|void>
|
||||
export const invokeWebApiWrapperAsync = async (
|
||||
funcAsync: asyncFunction,
|
||||
setShowLoader?: Dispatch<SetStateAction<boolean>>,
|
||||
errorNotifyText?: (string | ((ex: unknown) => string)),
|
||||
errorNotifyText?: ReactNode | ((ex: unknown) => ReactNode),
|
||||
actionName?: string,
|
||||
) => {
|
||||
setShowLoader?.(true)
|
||||
|
Loading…
Reference in New Issue
Block a user