Skip to content

Commit 323c9bd

Browse files
committed
Fix missing return types
Signed-off-by: martinRenou <[email protected]>
1 parent 47c63a9 commit 323c9bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/controls/src/widget_tagsinput.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ abstract class TagsInputBaseView extends DOMWidgetView {
173173
};
174174
})(index, value[index]);
175175
tag.ondrop = ((index: number) => {
176-
return (event: DragEvent) => {
176+
return (event: DragEvent): void => {
177177
this.ondrop(event, index);
178178
};
179179
})(index);
180180
tag.ondragover = this.ondragover.bind(this);
181181
tag.ondragenter = ((index: number) => {
182-
return (event: DragEvent) => {
182+
return (event: DragEvent): void => {
183183
this.ondragenter(event, index);
184184
};
185185
})(index);
@@ -617,7 +617,7 @@ export class TagsInputView extends TagsInputBaseView {
617617
tag.appendChild(i);
618618

619619
i.onmousedown = ((index: number) => {
620-
return () => {
620+
return (): void => {
621621
this.removeTag(index);
622622
this.loseFocus();
623623
};
@@ -700,7 +700,7 @@ export class ColorsInputView extends TagsInputBaseView {
700700
tag.appendChild(i);
701701

702702
i.onmousedown = ((index: number) => {
703-
return () => {
703+
return (): void => {
704704
this.removeTag(index);
705705
this.loseFocus();
706706
};

0 commit comments

Comments
 (0)