0
0

refactor: fix types

This commit is contained in:
syuilo 2021-09-26 02:10:07 +09:00
parent 67e2768c3e
commit a75f3fb87c

View File

@ -7,9 +7,9 @@ export class Autocomplete {
private suggestion: {
x: Ref<number>;
y: Ref<number>;
q: Ref<string>;
q: Ref<string | null>;
close: Function;
};
} | null;
private textarea: any;
private vm: any;
private currentType: string;
@ -122,7 +122,7 @@ export class Autocomplete {
/**
*
*/
private async open(type: string, q: string) {
private async open(type: string, q: string | null) {
if (type != this.currentType) {
this.close();
}