mirror of
https://github.com/bitwarden/jslib
synced 2025-12-23 03:33:29 +00:00
move export models to jslib
This commit is contained in:
13
src/models/export/collectionWithId.ts
Normal file
13
src/models/export/collectionWithId.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Collection } from './collection';
|
||||
|
||||
import { CollectionView } from '../view/collectionView';
|
||||
|
||||
export class CollectionWithId extends Collection {
|
||||
id: string;
|
||||
|
||||
// Use build method instead of ctor so that we can control order of JSON stringify for pretty print
|
||||
build(o: CollectionView) {
|
||||
this.id = o.id;
|
||||
super.build(o);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user