Skip to content

Commit 12f16a5

Browse files
authored
Merge pull request #185 from cal-smith/modal
fix(modal): make id/type/click paramaters optional for ModalButton
2 parents a25a8ec + 191553b commit 12f16a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/modal/alert-modal.interface.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,16 @@ export interface ModalButton {
5656
* Display value of the button
5757
*/
5858
text: string;
59+
/**
60+
* Optional unique ID for the button
61+
*/
62+
id?: string;
5963
/**
6064
* Button type
6165
*/
62-
type: ModalButtonType;
66+
type?: ModalButtonType;
6367
/**
6468
* Callback for the button `click` event
6569
*/
66-
click: Function;
70+
click?: Function;
6771
}

0 commit comments

Comments
 (0)