1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-22 11:13:17 +00:00
Files
jslib/src/models/export/collectionWithId.ts
2018-12-17 10:29:37 -05:00

14 lines
361 B
TypeScript

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);
}
}