1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

add export related code changes (#16789)

• export related changes from PR 16399
This commit is contained in:
John Harrington
2025-10-15 09:07:59 -07:00
committed by GitHub
parent c782de57a3
commit 2858d12011

View File

@@ -1,6 +1,10 @@
// FIXME: update to use a const object instead of a typescript enum
// eslint-disable-next-line @bitwarden/platform/no-enums
export enum EncryptedExportType {
AccountEncrypted = 0,
FileEncrypted = 1,
}
/** A type of encrypted export. */
export const EncryptedExportType = Object.freeze({
/** Export is encrypted using the Bitwarden account key. */
AccountEncrypted: 0,
/** Export is encrypted using a separate file password/key. */
FileEncrypted: 1,
} as const);
/** A type of encrypted export. */
export type EncryptedExportType = (typeof EncryptedExportType)[keyof typeof EncryptedExportType];