fix(striker-ui): isolate build delete dialog props args
This commit is contained in:
parent
c623170334
commit
64c1b80adb
10
striker-ui/types/Checklist.d.ts
vendored
10
striker-ui/types/Checklist.d.ts
vendored
@ -2,13 +2,15 @@ type Checklist = Record<string, boolean>;
|
|||||||
|
|
||||||
type ArrayChecklist = (keyof Checklist)[];
|
type ArrayChecklist = (keyof Checklist)[];
|
||||||
|
|
||||||
type BuildDeleteDialogPropsFunction = (
|
type BuildDeleteDialogPropsArgs = Pick<ConfirmDialogProps, 'onProceedAppend'> &
|
||||||
args: {
|
Pick<FormSummaryProps<Checklist>, 'renderEntry'> & {
|
||||||
confirmDialogProps?: Partial<Omit<ConfirmDialogProps, 'content'>>;
|
confirmDialogProps?: Partial<Omit<ConfirmDialogProps, 'content'>>;
|
||||||
formSummaryProps?: Omit<FormSummaryProps<Checklist>, 'entries'>;
|
formSummaryProps?: Omit<FormSummaryProps<Checklist>, 'entries'>;
|
||||||
getConfirmDialogTitle: (length: number) => ReactNode;
|
getConfirmDialogTitle: (length: number) => ReactNode;
|
||||||
} & Pick<ConfirmDialogProps, 'onProceedAppend'> &
|
};
|
||||||
Pick<FormSummaryProps<Checklist>, 'renderEntry'>,
|
|
||||||
|
type BuildDeleteDialogPropsFunction = (
|
||||||
|
args: BuildDeleteDialogPropsArgs,
|
||||||
) => ConfirmDialogProps;
|
) => ConfirmDialogProps;
|
||||||
|
|
||||||
type GetCheckFunction = (key: string) => boolean;
|
type GetCheckFunction = (key: string) => boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user