Skip to content

FieldMixin

FieldMixin<TLanguage, TBase, TField>: Simplify<TBase extends any ? Extract<keyof TField, string> extends Extract<keyof TBase, string> ? object & Omit<TBase, "description" | "label" | keyof TField> & TField : object & Omit<TBase, "description" | "label"> : never>

Utility type to implement one of the core field types defined in @douglasneuroinformatics/libui-form-types

Type Parameters

TLanguage extends InstrumentLanguage

the language(s) of the instrument

TBase extends BaseField

the base field type that this field corresponds to

TField extends object = object

optional extensions to the multilingual base type, only applying to union members with the keys

Defined in

packages/runtime-core/src/types/instrument.form.d.ts:25