@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
21 lines (19 loc) • 568 B
text/typescript
import type { SharedSliceModelVariation } from "./sharedSliceVariation"
import type { CustomTypeModelSliceType } from "./sliceZone"
/**
* A Prismic shared Slice model.
*
* More details: {@link https://prismic.io/docs/slice}
*
* @typeParam Variation - A variation for the shared Slice.
*/
export interface SharedSliceModel<
ID extends string = string,
Variation extends SharedSliceModelVariation = SharedSliceModelVariation,
> {
type: typeof CustomTypeModelSliceType.SharedSlice
id: ID
name: string
description?: string
variations: readonly Variation[]
}