@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
17 lines (16 loc) • 584 B
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[];
}