diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-06-14 17:23:23 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-06-14 17:23:23 -0400 |
commit | f0474c18d092f4db49255a1e92d7f052b7398897 (patch) | |
tree | 1e26ccaf42dec4d99904e2eddb36dff6f3b55948 /src/fields/Types.ts | |
parent | 20d217d825891cf29a432a048d1f8e7bc04d062a (diff) | |
parent | bf1198fbe73847087b1ec8e00a43306816b3508a (diff) |
Merge branch 'master' into collaboration-sarah
Diffstat (limited to 'src/fields/Types.ts')
-rw-r--r-- | src/fields/Types.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fields/Types.ts b/src/fields/Types.ts index 4cf286a32..251b1149d 100644 --- a/src/fields/Types.ts +++ b/src/fields/Types.ts @@ -3,7 +3,7 @@ import { List } from './List'; import { RefField } from './RefField'; import { DateField } from './DateField'; import { ScriptField } from './ScriptField'; -import { URLField, WebField, ImageField } from './URLField'; +import { URLField, WebField, ImageField, CsvField } from './URLField'; import { TextField } from '@material-ui/core'; import { RichTextField } from './RichTextField'; @@ -104,6 +104,9 @@ export function RTFCast(field: FieldResult) { export function ScriptCast(field: FieldResult, defaultVal: ScriptField | null = null) { return Cast(field, ScriptField, defaultVal); } +export function CsvCast(field: FieldResult, defaultVal: CsvField | null = null) { + return Cast(field, CsvField, defaultVal); +} export function WebCast(field: FieldResult, defaultVal: WebField | null = null) { return Cast(field, WebField, defaultVal); } |