mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[SM-288] Rename models to follow naming convention (#3795)
This commit is contained in:
14
libs/common/src/models/export/folder-with-id.export.ts
Normal file
14
libs/common/src/models/export/folder-with-id.export.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Folder as FolderDomain } from "../domain/folder";
|
||||
import { FolderView } from "../view/folder.view";
|
||||
|
||||
import { FolderExport } from "./folder.export";
|
||||
|
||||
export class FolderWithIdExport extends FolderExport {
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user