mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
Migrate platform owned abstract service to strict ts (#15734)
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
// FIXME: Update this file to be type safe and remove this and next line
|
|
||||||
// @ts-strict-ignore
|
|
||||||
import { Observable, Subject } from "rxjs";
|
import { Observable, Subject } from "rxjs";
|
||||||
|
|
||||||
import { Fido2CredentialView } from "../../../vault/models/view/fido2-credential.view";
|
import { Fido2CredentialView } from "../../../vault/models/view/fido2-credential.view";
|
||||||
@@ -25,13 +23,13 @@ export interface ActiveRequest {
|
|||||||
export type RequestCollection = Readonly<{ [tabId: number]: ActiveRequest }>;
|
export type RequestCollection = Readonly<{ [tabId: number]: ActiveRequest }>;
|
||||||
|
|
||||||
export abstract class Fido2ActiveRequestManager {
|
export abstract class Fido2ActiveRequestManager {
|
||||||
getActiveRequest$: (tabId: number) => Observable<ActiveRequest | undefined>;
|
abstract getActiveRequest$(tabId: number): Observable<ActiveRequest | undefined>;
|
||||||
getActiveRequest: (tabId: number) => ActiveRequest | undefined;
|
abstract getActiveRequest(tabId: number): ActiveRequest | undefined;
|
||||||
newActiveRequest: (
|
abstract newActiveRequest(
|
||||||
tabId: number,
|
tabId: number,
|
||||||
credentials: Fido2CredentialView[],
|
credentials: Fido2CredentialView[],
|
||||||
abortController: AbortController,
|
abortController: AbortController,
|
||||||
) => Promise<RequestResult>;
|
): Promise<RequestResult>;
|
||||||
removeActiveRequest: (tabId: number) => void;
|
abstract removeActiveRequest(tabId: number): void;
|
||||||
removeAllActiveRequests: () => void;
|
abstract removeAllActiveRequests(): void;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user