UNPKG

@datocms/cma-client

Version:
23 lines (22 loc) 850 B
import { type LocalizedFieldValue } from '../utilities/normalizedFieldValues'; import type { MapEditorConfiguration } from './appearance/map'; import type { RequiredValidator } from './validators/required'; export type LatLonFieldValue = { latitude: number; longitude: number; } | null; export declare function isLatLonFieldValue(value: unknown): value is LatLonFieldValue; export declare function isLocalizedLatLonFieldValue(value: unknown): value is LocalizedFieldValue<LatLonFieldValue>; export type LatLonFieldValidators = { /** Value must be specified or it won't be valid */ required?: RequiredValidator; }; export type LatLonFieldAppearance = { editor: 'map'; parameters: MapEditorConfiguration; } | { /** Plugin ID */ editor: string; /** Plugin configuration */ parameters: Record<string, unknown>; };