type.ts 537 B

123456789101112131415161718192021222324
  1. import type { CommentEditorEvent } from './constant';
  2. interface CommentEditorChangeEvent {
  3. type: CommentEditorEvent.Change;
  4. value: string;
  5. }
  6. interface CommentEditorMultiSelectEvent {
  7. type: CommentEditorEvent.MultiSelect;
  8. }
  9. interface CommentEditorSelectEvent {
  10. type: CommentEditorEvent.Select;
  11. }
  12. interface CommentEditorBlurEvent {
  13. type: CommentEditorEvent.Blur;
  14. }
  15. export type CommentEditorEventParams =
  16. | CommentEditorChangeEvent
  17. | CommentEditorMultiSelectEvent
  18. | CommentEditorSelectEvent
  19. | CommentEditorBlurEvent;