UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

14 lines (13 loc) 511 B
import type { AnyRegularField } from "./types"; /** * A Slice - sections of your webpages. * * @see More details: {@link https://prismic.io/docs/slice} */ export interface Slice<SliceType = string, PrimaryFields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>, ItemsFields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>> { slice_type: SliceType; slice_label: string | null; id: string; primary: PrimaryFields; items: ItemsFields[]; }