mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
refactor: fix types
This commit is contained in:
parent
67e2768c3e
commit
a75f3fb87c
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue