UNPKG

@prismicio/types-internal

Version:
18 lines (14 loc) 574 B
import type { Group } from "../widgets" import type { NestableWidget } from "../widgets/nestable" import type { DiffChange } from "./Changes" export type NestableWidgetDiff = DiffChange<NestableWidget, NestableWidget> export type GroupWidgetWithFieldsDiff = Omit<Group, "config"> & { config: Omit<Group["config"], "fields"> & { fields?: Record<string, GroupWidgetDiff | NestableWidgetDiff> } } export type GroupWidgetDiff = DiffChange< GroupWidgetWithFieldsDiff, GroupWidgetWithFieldsDiff > export type SlicePrimaryWidgetDiff = NestableWidgetDiff | GroupWidgetDiff