Skip to content

Commit

Permalink
chore(react-dialog): removes unnecessary union case for DialogOpenCha…
Browse files Browse the repository at this point in the history
…ngeData (#25504)
  • Loading branch information
bsunderhus authored Nov 10, 2022
1 parent 9eeec49 commit d1228a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: removes unnecessary union case for DialogOpenChangeData",
"packageName": "@fluentui/react-dialog",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ export type DialogContentState = ComponentState<DialogContentSlots>;

// @public (undocumented)
export type DialogOpenChangeData = {
type: 'dialogCancel';
open: boolean;
event: React_2.SyntheticEvent<DialogSurfaceElement>;
} | {
type: 'escapeKeyDown';
open: boolean;
event: React_2.KeyboardEvent<DialogSurfaceElement>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ export type DialogSlots = {};
export type DialogOpenChangeEvent = DialogOpenChangeData['event'];

export type DialogOpenChangeData =
| {
/**
* triggered when Escape key is pressed in a native `dialog`
*/
type: 'dialogCancel';
open: boolean;
event: React.SyntheticEvent<DialogSurfaceElement>;
}
| {
type: 'escapeKeyDown';
open: boolean;
Expand Down

0 comments on commit d1228a1

Please sign in to comment.