1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +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 /** A type of encrypted export. */
// eslint-disable-next-line @bitwarden/platform/no-enums export const EncryptedExportType = Object.freeze({
export enum EncryptedExportType { /** Export is encrypted using the Bitwarden account key. */
AccountEncrypted = 0, AccountEncrypted: 0,
FileEncrypted = 1, /** 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];