mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
copy common ts code over from browser repo
This commit is contained in:
16
src/models/data/fieldData.ts
Normal file
16
src/models/data/fieldData.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { FieldType } from '../../enums/fieldType.enum';
|
||||
|
||||
class FieldData {
|
||||
type: FieldType;
|
||||
name: string;
|
||||
value: string;
|
||||
|
||||
constructor(response: any) {
|
||||
this.type = response.Type;
|
||||
this.name = response.Name;
|
||||
this.value = response.Value;
|
||||
}
|
||||
}
|
||||
|
||||
export { FieldData };
|
||||
(window as any).FieldData = FieldData;
|
||||
Reference in New Issue
Block a user