bitwarden-estensione-browser/libs/common/src/models/export/collectionWithIdExport.ts

15 lines
459 B
TypeScript

import { Collection as CollectionDomain } from "../domain/collection";
import { CollectionView } from "../view/collectionView";
import { CollectionExport } from "./collectionExport";
export class CollectionWithIdExport extends CollectionExport {
id: string;
// Use build method instead of ctor so that we can control order of JSON stringify for pretty print
build(o: CollectionView | CollectionDomain) {
this.id = o.id;
super.build(o);
}
}