Skip to content

Commit

Permalink
fix(confirm-dialog): event handler types (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva authored Jan 26, 2024
1 parent 700dd8d commit af3843c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/ebay-confirm-dialog/index.marko
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import type { Input as BaseInput } from "<ebay-dialog-base>";
import type { WithNormalizedProps } from "../../global";
import type { AttrString } from "marko/tags-html";
import type { Input as ButtonInput } from "<ebay-button>";
import type { Input as DialogBaseInput } from "<ebay-dialog-base>";

static interface ConfirmDialogInput extends Omit<BaseInput, `on${string}`> {
"reject-text"?: AttrString;
"confirm-text"?: AttrString;
"on-open"?: () => void;
"on-reject"?: () => void;
"on-confirm"?: () => void;
"on-open"?: DialogBaseInput["on-open"];
"on-reject"?: ButtonInput["on-click"] | DialogBaseInput["on-close"];
"on-confirm"?: ButtonInput["on-click"];
"confirm-cta-variant"?: typeof validConfirmCTAVariants[number];
}

Expand Down

0 comments on commit af3843c

Please sign in to comment.