Skip to content

Commit

Permalink
chore: fix typo in the event type name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Oct 8, 2024
1 parent 6527a48 commit d1584a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/dashboard/src/vaadin-dashboard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export type DashboardItemRemovedEvent<TItem extends DashboardItem> = CustomEvent
/**
* Fired when an item selected state changed
*/
export type DashboardItemSeletedChangedEvent<TItem extends DashboardItem> = CustomEvent<{
export type DashboardItemSelectedChangedEvent<TItem extends DashboardItem> = CustomEvent<{
item: TItem;
value: boolean;
}>;
Expand Down Expand Up @@ -124,7 +124,7 @@ export interface DashboardCustomEventMap<TItem extends DashboardItem> {

'dashboard-item-removed': DashboardItemRemovedEvent<TItem>;

'dashboard-item-selected-changed': DashboardItemSeletedChangedEvent<TItem>;
'dashboard-item-selected-changed': DashboardItemSelectedChangedEvent<TItem>;

'dashboard-item-move-mode-changed': DashboardItemMoveModeChangedEvent<TItem>;

Expand Down
4 changes: 2 additions & 2 deletions packages/dashboard/test/typings/dashboard.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
DashboardItemRemovedEvent,
DashboardItemResizedEvent,
DashboardItemResizeModeChangedEvent,
DashboardItemSeletedChangedEvent,
DashboardItemSelectedChangedEvent,
DashboardRenderer,
DashboardSectionItem,
} from '../../vaadin-dashboard.js';
Expand Down Expand Up @@ -93,7 +93,7 @@ narrowedDashboard.addEventListener('dashboard-item-removed', (event) => {
});

narrowedDashboard.addEventListener('dashboard-item-selected-changed', (event) => {
assertType<DashboardItemSeletedChangedEvent<TestDashboardItem>>(event);
assertType<DashboardItemSelectedChangedEvent<TestDashboardItem>>(event);
assertType<TestDashboardItem>(event.detail.item);
assertType<boolean>(event.detail.value);
});
Expand Down

0 comments on commit d1584a3

Please sign in to comment.