mirror of
https://github.com/bitwarden/jslib
synced 2025-12-22 11:13:17 +00:00
14 lines
361 B
TypeScript
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);
|
|
}
|
|
}
|