fix type
This commit is contained in:
@ -4,7 +4,7 @@ import { popup } from '@/os';
|
||||
class ReactionPicker {
|
||||
private src: Ref<HTMLElement | null> = ref(null);
|
||||
private manualShowing = ref(false);
|
||||
private onChosen?: (reaction: string, withRenote: boolean) => void;
|
||||
private onChosen?: ({ reaction: string, withRenote: boolean }) => void;
|
||||
private onClosed?: () => void;
|
||||
|
||||
constructor() {
|
||||
@ -18,7 +18,7 @@ class ReactionPicker {
|
||||
manualShowing: this.manualShowing
|
||||
}, {
|
||||
done: results => {
|
||||
this.onChosen!(results.reaction, results.withRenote);
|
||||
this.onChosen!({ reaction: results.reaction, withRenote: results.withRenote });
|
||||
},
|
||||
close: () => {
|
||||
this.manualShowing.value = false;
|
||||
|
Reference in New Issue
Block a user