fix: refactor to have child classes that inherit from RecordValue, but represent the distinct types of value objects that can be returned by the api. fix: added and updated tests to address this refactor

This commit is contained in:
Stevan Freeborn
2023-02-13 17:05:50 -06:00
parent ec82dd066e
commit 74d247047e
32 changed files with 1809 additions and 331 deletions
+9
View File
@@ -0,0 +1,9 @@
import { RecordValue } from './RecordValue';
import { RecordValueType } from '../enums/RecordValueType';
import { type File } from './File';
export class FileListRecordValue extends RecordValue<File[]> {
constructor(fieldId: number, value: File[]) {
super(RecordValueType.FileList, fieldId, value);
}
}