Extra types

This commit is contained in:
Adria Navarro 2025-03-17 16:11:27 +01:00
parent 31cdf7eaaa
commit 0ff95bcf27
2 changed files with 7 additions and 7 deletions

View File

@ -14,11 +14,11 @@
// Not exposed as a builder setting. Used internally to disable validation // Not exposed as a builder setting. Used internally to disable validation
// for fields rendered in things like search blocks. // for fields rendered in things like search blocks.
export let disableSchemaValidation = false export let disableSchemaValidation: boolean = false
// Not exposed as a builder setting. Used internally to allow searching on // Not exposed as a builder setting. Used internally to allow searching on
// auto columns. // auto columns.
export let editAutoColumns = false export let editAutoColumns: boolean = false
const context = getContext("context") const context = getContext("context")
const component = getContext("component") const component = getContext("component")

View File

@ -47,7 +47,7 @@
// For internal use only, to disable context when being used with standalone // For internal use only, to disable context when being used with standalone
// fields // fields
export let provideContext = true export let provideContext: boolean = true
// We export this store so that when we remount the inner form we can still // We export this store so that when we remount the inner form we can still
// persist what step we're on // persist what step we're on
@ -195,11 +195,11 @@
registerField: ( registerField: (
field: string, field: string,
type: FieldType, type: FieldType,
defaultValue = null, defaultValue: string | null = null,
fieldDisabled = false, fieldDisabled: boolean = false,
fieldReadOnly = false, fieldReadOnly: boolean = false,
validationRules: UIFieldValidationRule[], validationRules: UIFieldValidationRule[],
step = 1 step: number = 1
) => { ) => {
if (!field) { if (!field) {
return return