refactor: missing assertions

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-01-19 01:13:56 +09:00
parent 4ec15002bf
commit 8fab8630ad
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
1 changed files with 2 additions and 2 deletions

View File

@ -63,10 +63,10 @@ export class I18n<T extends ILocale> {
}
}
return new Proxy(this.locale, new Handler());
return new Proxy(this.locale, new Handler()) as Ts<T>;
}
return this.locale;
return this.locale as Ts<T>;
}
// string にしているのは、ドット区切りでのパス指定を許可するため