From 6887940e22262d7d571fd5df2546e4bf0cb244b3 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Fri, 2 Aug 2024 10:57:15 -0700 Subject: [PATCH] feat: add a method for subclasses of FieldVariable to get the default type. (#8453) --- core/field_variable.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/field_variable.ts b/core/field_variable.ts index 9dbba4ca3..23ea7c15a 100644 --- a/core/field_variable.ts +++ b/core/field_variable.ts @@ -322,6 +322,15 @@ export class FieldVariable extends FieldDropdown { return this.variable; } + /** + * Gets the type of this field's default variable. + * + * @returns The default type for this variable field. + */ + protected getDefaultType(): string { + return this.defaultType; + } + /** * Gets the validation function for this field, or null if not set. * Returns null if the variable is not set, because validators should not