mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-15 15:53:41 +00:00
18 lines
461 B
TypeScript
18 lines
461 B
TypeScript
import { Account } from "./account";
|
|
import { GlobalState } from "./globalState";
|
|
|
|
export class State<
|
|
TGlobalState extends GlobalState = GlobalState,
|
|
TAccount extends Account = Account,
|
|
> {
|
|
accounts: { [userId: string]: TAccount } = {};
|
|
globals: TGlobalState;
|
|
activeUserId: string;
|
|
authenticatedAccounts: string[] = [];
|
|
accountActivity: { [userId: string]: number } = {};
|
|
|
|
constructor(globals: TGlobalState) {
|
|
this.globals = globals;
|
|
}
|
|
}
|