mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
view model types
This commit is contained in:
15
src/models/view/fieldView.ts
Normal file
15
src/models/view/fieldView.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { FieldType } from '../../enums/fieldType';
|
||||
|
||||
import { View } from './view';
|
||||
|
||||
import { Field } from '../domain/field';
|
||||
|
||||
export class FieldView implements View {
|
||||
name: string;
|
||||
vault: string;
|
||||
type: FieldType;
|
||||
|
||||
constructor(f: Field) {
|
||||
this.type = f.type;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user