Skip to content

Commit

Permalink
Fix: updated type of on export handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed May 18, 2024
1 parent 01133e5 commit facaa6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/operations/export-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Button, IconButton } from "../core";

interface IExportActionProps {
text?: string;
onExport?: (data: ISTKData) => Promise<void> | void;
onExport?: (data: ISTKData) => unknown;
styles?: IStyles;
}

Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface IEvents {
onMaxSeatSelectionCountReached?: () => void;
onWorkspaceHover?: () => void;
onSectionClick?: (section: ISection) => void;
onExport?: (data: ISTKData) => Promise<void> | void;
onExport?: (data: ISTKData) => unknown;
onWorkspaceLoad?: () => void;
/** Only used when the reload button is enabled */
onReload?: () => void;
Expand Down

0 comments on commit facaa6e

Please sign in to comment.