
* Require trailing commas * Add trailing commas * Add trailing commas in testUtils dir * Add trailing commas
13 lines
376 B
TypeScript
13 lines
376 B
TypeScript
import { WebhookErrorFragment } from "@saleor/graphql";
|
|
import { IntlShape } from "react-intl";
|
|
|
|
import { getCommonFormFieldErrorMessage } from "./common";
|
|
|
|
function getWebhookErrorMessage(
|
|
err: Omit<WebhookErrorFragment, "__typename"> | undefined,
|
|
intl: IntlShape,
|
|
): string {
|
|
return getCommonFormFieldErrorMessage(err, intl);
|
|
}
|
|
|
|
export default getWebhookErrorMessage;
|