Skip to content

Commit d718194

Browse files
authored
docs: add missing fires JSDoc annotations for upload file events (#11268)
1 parent fd9d250 commit d718194

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/upload/src/vaadin-upload-file.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ export interface UploadFileEventMap extends HTMLElementEventMap, UploadFileCusto
9696
* `--vaadin-upload-file-warning-color` |
9797
*
9898
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
99+
*
100+
* @fires {CustomEvent} file-abort - Fired when the abort button is pressed.
101+
* @fires {CustomEvent} file-retry - Fired when the retry button is pressed.
102+
* @fires {CustomEvent} file-start - Fired when the start button is pressed.
99103
*/
100104
declare class UploadFile extends UploadFileMixin(ThemableMixin(HTMLElement)) {
101105
addEventListener<K extends keyof UploadFileEventMap>(

packages/upload/src/vaadin-upload-file.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ import { UploadFileMixin } from './vaadin-upload-file-mixin.js';
7777
*
7878
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
7979
*
80+
* @fires {CustomEvent} file-abort - Fired when the abort button is pressed.
81+
* @fires {CustomEvent} file-retry - Fired when the retry button is pressed.
82+
* @fires {CustomEvent} file-start - Fired when the start button is pressed.
83+
*
8084
* @customElement vaadin-upload-file
8185
* @extends HTMLElement
8286
* @mixes UploadFileMixin

0 commit comments

Comments
 (0)