Skip to content

Commit

Permalink
update acq types
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Dec 20, 2024
1 parent edfe0d4 commit 3e91a83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion acq-components/lib/hooks/useShowCallout/useShowCallout.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { CalloutContextType } from '../../../../core';

type ShowCalloutFnArgs = Omit<Parameters<CalloutContextType['sendCallout']>[0], 'message'> & {
message?: string,
message?: string | React.ReactNode,
messageId?: string,
values?: Record<string, string>,
};

type ShowCalloutFn = (args: ShowCalloutFnArgs) => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface ResponseErrorsContainerBody {
}

export interface ErrorHandlingStrategy {
handle(errors: ResponseErrorsContainer): void;
handle(errors: ResponseErrorsContainer): void | Promise<void>;
}

/**
Expand Down
5 changes: 4 additions & 1 deletion acq-components/lib/utils/errorHandling/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export { ResponseErrorsContainer } from './ResponseErrorsContainer';
export {
ErrorHandlingStrategy,
ResponseErrorsContainer,
} from './ResponseErrorsContainer';

0 comments on commit 3e91a83

Please sign in to comment.