mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
15 lines
461 B
TypeScript
15 lines
461 B
TypeScript
import { Collection as CollectionDomain } from "../domain/collection";
|
|
import { CollectionView } from "../view/collection.view";
|
|
|
|
import { CollectionExport } from "./collection.export";
|
|
|
|
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);
|
|
}
|
|
}
|