mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
17 lines
585 B
TypeScript
17 lines
585 B
TypeScript
export type StorageLocation = "disk" | "memory";
|
|
|
|
/**
|
|
* Defines the base location and instruction of where this state is expected to be located.
|
|
*/
|
|
export class StateDefinition {
|
|
/**
|
|
* Creates a new instance of {@link StateDefinition}, the creation of which is owned by the platform team.
|
|
* @param name The name of the state, this needs to be unique from all other {@link StateDefinition}'s.
|
|
* @param storageLocation The location of where this state should be stored.
|
|
*/
|
|
constructor(
|
|
readonly name: string,
|
|
readonly storageLocation: StorageLocation,
|
|
) {}
|
|
}
|