From 38a382a03675d6a50ec7de75f05025efd093f570 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 17 May 2024 10:39:25 -0400 Subject: manually added ChatBox from aj-starter --- src/fields/Types.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fields') diff --git a/src/fields/Types.ts b/src/fields/Types.ts index 26196d15d..ef79f72e4 100644 --- a/src/fields/Types.ts +++ b/src/fields/Types.ts @@ -5,7 +5,7 @@ import { ProxyField } from './Proxy'; import { RefField } from './RefField'; import { RichTextField } from './RichTextField'; import { ScriptField } from './ScriptField'; -import { CsvField, ImageField, WebField } from './URLField'; +import { CsvField, ImageField, PdfField, WebField } from './URLField'; // eslint-disable-next-line no-use-before-define export type ToConstructor = T extends string ? 'string' : T extends number ? 'number' : T extends boolean ? 'boolean' : T extends List ? ListSpec : new (...args: any[]) => T; @@ -122,6 +122,9 @@ export function CsvCast(field: FieldResult, defaultVal: CsvField | null = null) export function WebCast(field: FieldResult, defaultVal: WebField | null = null) { return Cast(field, WebField, defaultVal); } +export function PDFCast(field: FieldResult, defaultVal: PdfField | null = null) { + return Cast(field, PdfField, defaultVal); +} export function ImageCast(field: FieldResult, defaultVal: ImageField | null = null) { return Cast(field, ImageField, defaultVal); } -- cgit v1.2.3-70-g09d2