mirror of
https://github.com/bitwarden/browser
synced 2026-02-09 05:00:10 +00:00
prettier
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
import { Algorithm as AlgorithmData, AlgorithmsByType as AlgorithmsByTypeData, Type as TypeData } from "./data";
|
||||
import {
|
||||
Algorithm as AlgorithmData,
|
||||
AlgorithmsByType as AlgorithmsByTypeData,
|
||||
Type as TypeData,
|
||||
} from "./data";
|
||||
import { CredentialType, CredentialAlgorithm } from "./type";
|
||||
|
||||
// `CredentialAlgorithm` is defined in terms of `ABT`; supplying
|
||||
// type information in the barrel file breaks a circular dependency.
|
||||
/** Credential generation algorithms grouped by purpose. */
|
||||
export const AlgorithmsByType: Record<CredentialType, ReadonlyArray<CredentialAlgorithm>> = AlgorithmsByTypeData;
|
||||
export const Algorithms: ReadonlyArray<CredentialAlgorithm> = Object.freeze(Object.values(AlgorithmData));
|
||||
export const AlgorithmsByType: Record<
|
||||
CredentialType,
|
||||
ReadonlyArray<CredentialAlgorithm>
|
||||
> = AlgorithmsByTypeData;
|
||||
export const Algorithms: ReadonlyArray<CredentialAlgorithm> = Object.freeze(
|
||||
Object.values(AlgorithmData),
|
||||
);
|
||||
export const Types: ReadonlyArray<CredentialType> = Object.freeze(Object.values(TypeData));
|
||||
|
||||
export { Profile, Type, Algorithm } from "./data";
|
||||
|
||||
Reference in New Issue
Block a user