diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-18 23:32:43 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-18 23:32:43 +0900 |
| commit | 73b5c129278bbcc19a95f2c599ac76f68f023c3a (patch) | |
| tree | 62c4198ab091c14214eb3e552352a2ef41ee9055 /packages/client/src/scripts | |
| parent | Update CHANGELOG.md (diff) | |
| download | sharkey-73b5c129278bbcc19a95f2c599ac76f68f023c3a.tar.gz sharkey-73b5c129278bbcc19a95f2c599ac76f68f023c3a.tar.bz2 sharkey-73b5c129278bbcc19a95f2c599ac76f68f023c3a.zip | |
introduce lint for client
Resolve #7998
Diffstat (limited to 'packages/client/src/scripts')
| -rw-r--r-- | packages/client/src/scripts/reaction-picker.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/client/src/scripts/reaction-picker.ts b/packages/client/src/scripts/reaction-picker.ts index e923326ece..3ac1f63430 100644 --- a/packages/client/src/scripts/reaction-picker.ts +++ b/packages/client/src/scripts/reaction-picker.ts @@ -4,8 +4,8 @@ import { popup } from '@/os'; class ReactionPicker { private src: Ref<HTMLElement | null> = ref(null); private manualShowing = ref(false); - private onChosen?: Function; - private onClosed?: Function; + private onChosen?: (reaction: string) => void; + private onClosed?: () => void; constructor() { // nop @@ -30,7 +30,7 @@ class ReactionPicker { }); } - public show(src: HTMLElement, onChosen: Function, onClosed: Function) { + public show(src: HTMLElement, onChosen: ReactionPicker['onChosen'], onClosed: ReactionPicker['onClosed']) { this.src.value = src; this.manualShowing.value = true; this.onChosen = onChosen; |