refactor: missing assertions
This commit is contained in:
parent
4ec15002bf
commit
8fab8630ad
|
@ -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 にしているのは、ドット区切りでのパス指定を許可するため
|
||||
|
|
Loading…
Reference in New Issue