@datocms/cma-client
Version:
JS client for DatoCMS REST Content Management API
20 lines (19 loc) • 885 B
TypeScript
import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues';
import type { BooleanEditorConfiguration } from './appearance/boolean';
import type { BooleanRadioGroupEditorConfiguration } from './appearance/boolean_radio_group';
export type BooleanFieldValue = boolean | null;
export declare function isBooleanFieldValue(value: unknown): value is BooleanFieldValue;
export declare function isLocalizedBooleanFieldValue(value: unknown): value is LocalizedFieldValue<BooleanFieldValue>;
export type BooleanFieldValidators = Record<string, never>;
export type BooleanFieldAppearance = {
editor: 'boolean';
parameters: BooleanEditorConfiguration;
} | {
editor: 'boolean_radio_group';
parameters: BooleanRadioGroupEditorConfiguration;
} | {
/** Plugin ID */
editor: string;
/** Plugin configuration */
parameters: Record<string, unknown>;
};