1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

chore: document why we use any type

This commit is contained in:
Andreas Coroiu
2025-11-13 09:13:00 +01:00
parent a94e19d317
commit 3bcf3cfa5d

View File

@@ -12,9 +12,11 @@ const IPC_SESSIONS = KeyDefinition.record<object, string>(IPC_MEMORY, "ipcSessio
* Implementation of SDK-defined repository interface/trait. Do not use directly. * Implementation of SDK-defined repository interface/trait. Do not use directly.
* All error handling is done by the caller (the SDK). * All error handling is done by the caller (the SDK).
* For more information see IPC docs. * For more information see IPC docs.
*
* Interface uses `any` type as defined by the SDK until we get a concrete session type.
*/ */
export class IpcSessionRepository implements SdkIpcSessionRepository { export class IpcSessionRepository implements SdkIpcSessionRepository {
private states: GlobalState<Record<string, object>>; private states: GlobalState<Record<string, any>>;
constructor(private stateProvider: StateProvider) { constructor(private stateProvider: StateProvider) {
this.states = this.stateProvider.getGlobal(IPC_SESSIONS); this.states = this.stateProvider.getGlobal(IPC_SESSIONS);