@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
25 lines (23 loc) • 511 B
text/typescript
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[]
}