Skip to content
Snippets Groups Projects
Commit a75f3fb8 authored by syuilo's avatar syuilo
Browse files

refactor: fix types

parent 67e2768c
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,9 @@ export class Autocomplete { ...@@ -7,9 +7,9 @@ export class Autocomplete {
private suggestion: { private suggestion: {
x: Ref<number>; x: Ref<number>;
y: Ref<number>; y: Ref<number>;
q: Ref<string>; q: Ref<string | null>;
close: Function; close: Function;
}; } | null;
private textarea: any; private textarea: any;
private vm: any; private vm: any;
private currentType: string; private currentType: string;
...@@ -122,7 +122,7 @@ export class Autocomplete { ...@@ -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) { if (type != this.currentType) {
this.close(); this.close();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment