mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 19:53:59 +00:00
move deserialization help to new library
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
// @ts-strict-ignore
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { array, record } from "@bitwarden/serialization";
|
||||
|
||||
import { StorageKey } from "../../types/state";
|
||||
|
||||
import { array, record } from "./deserialization-helpers";
|
||||
import { StateDefinition } from "./state-definition";
|
||||
|
||||
export type DebugOptions = {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { array, record } from "@bitwarden/serialization";
|
||||
|
||||
import { UserId } from "../../types/guid";
|
||||
import { StorageKey } from "../../types/state";
|
||||
import { Utils } from "../misc/utils";
|
||||
|
||||
import { array, record } from "./deserialization-helpers";
|
||||
import { DebugOptions, KeyDefinitionOptions } from "./key-definition";
|
||||
import { StateDefinition } from "./state-definition";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { record } from "./deserialization-helpers";
|
||||
import { record } from "@bitwarden/serialization/deserialization-helpers";
|
||||
|
||||
describe("deserialization helpers", () => {
|
||||
describe("record", () => {
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./deserialization-helpers";
|
||||
|
||||
Reference in New Issue
Block a user