interface
PluginFieldRegistration
Helper return type that preserves saved-value and write-value types for generated Go/admin compatibility checks. Let TypeScript infer it from your registration; annotating everything as RegisteredPluginField would lose this information.
Properties
| Property | Type | Description |
|---|---|---|
type | Type | The type value. |
__@valueContract@2523 | { value: (value: Value) => Value; input: (value: Input) => Input; } | The __@valueContract@2523 value. |
fieldType | string | The fieldType value. |
component | Component< | The component value. |
decodeConfig | (field: SchemaField) => unknown | The decodeConfig value. |
decodeValue | (value: unknown) => unknown | The decodeValue value. |
decodeInput | (value: unknown) => unknown | The decodeInput value. |
decodeFormValue | (value: unknown) => unknown | The decodeFormValue value. |
__@registration@2502 | true | The __@registration@2502 value. |
Full signature
interface PluginFieldRegistration<Value, Input = Value, Type extends FieldType = FieldType> {
...
}Methods
PluginFieldRegistration.component()Public method PluginFieldRegistration.component from @riducms/plugin.
PluginFieldRegistration.decodeConfig()Public method PluginFieldRegistration.decodeConfig from @riducms/plugin.
PluginFieldRegistration.decodeFormValue()Public method PluginFieldRegistration.decodeFormValue from @riducms/plugin.
PluginFieldRegistration.decodeInput()Public method PluginFieldRegistration.decodeInput from @riducms/plugin.
PluginFieldRegistration.decodeValue()Public method PluginFieldRegistration.decodeValue from @riducms/plugin.