summaryrefslogtreecommitdiff
path: root/src/client/scripts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-09-26 02:10:07 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-09-26 02:10:07 +0900
commita75f3fb87c2fdd6d0eb66af4c2ce9939a29c180d (patch)
treeb0546fa58787016a828189a82736c30052a2a61c /src/client/scripts
parentUpdate CHANGELOG.md (diff)
downloadsharkey-a75f3fb87c2fdd6d0eb66af4c2ce9939a29c180d.tar.gz
sharkey-a75f3fb87c2fdd6d0eb66af4c2ce9939a29c180d.tar.bz2
sharkey-a75f3fb87c2fdd6d0eb66af4c2ce9939a29c180d.zip
refactor: fix types
Diffstat (limited to 'src/client/scripts')
-rw-r--r--src/client/scripts/autocomplete.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/scripts/autocomplete.ts b/src/client/scripts/autocomplete.ts
index 924d6a62ee..c4bcc4b724 100644
--- a/src/client/scripts/autocomplete.ts
+++ b/src/client/scripts/autocomplete.ts
@@ -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();
}