1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-08 11:33:15 +00:00
Files
jslib/common/src/models/export/folderWithId.ts
2022-02-22 15:39:11 +01:00

15 lines
391 B
TypeScript

import { Folder as FolderDomain } from "../domain/folder";
import { FolderView } from "../view/folderView";
import { Folder } from "./folder";
export class FolderWithId extends Folder {
id: string;
// Use build method instead of ctor so that we can control order of JSON stringify for pretty print
build(o: FolderView | FolderDomain) {
this.id = o.id;
super.build(o);
}
}