mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +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
251 B
TypeScript
9 lines
251 B
TypeScript
import { Observable } from "rxjs";
|
|
|
|
export abstract class AppIdService {
|
|
abstract appId$: Observable<string>;
|
|
abstract anonymousAppId$: Observable<string>;
|
|
abstract getAppId(): Promise<string>;
|
|
abstract getAnonymousAppId(): Promise<string>;
|
|
}
|