mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
We currently use a callback syntax for abstract services. This syntax isn't completely strict compliant and will fail the strictPropertyInitialization check. We also currently don't get any compile time errors if we forget to implement a function. To that end this PR updates all platform owned services to use the appropriate abstract keyword for non implemented functions. I also updated the fields to be actual functions and not properties.
9 lines
395 B
TypeScript
9 lines
395 B
TypeScript
export abstract class TranslationService {
|
|
abstract supportedTranslationLocales: string[];
|
|
abstract translationLocale: string;
|
|
abstract collator: Intl.Collator;
|
|
abstract localeNames: Map<string, string>;
|
|
abstract t(id: string, p1?: string | number, p2?: string | number, p3?: string | number): string;
|
|
abstract translate(id: string, p1?: string, p2?: string, p3?: string): string;
|
|
}
|