1
0
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:
Kyle Spearrin
2018-12-17 10:29:37 -05:00
parent 27566c3fd5
commit 94f103c474
12 changed files with 458 additions and 0 deletions

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