UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

25 lines (23 loc) 976 B
import { CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary } from "./types.cjs"; //#region src/types/model/sharedSliceVariation.d.ts /** * A shared Slice variation. * * More details: {@link https://prismic.io/docs/slice} * * @typeParam PrimaryFields - A record of fields that cannnot be repeated. * @typeParam ItemFields - A record of fields that can be repeated. */ interface SharedSliceModelVariation<ID extends string = string, PrimaryFields extends Record<string, CustomTypeModelFieldForSlicePrimary> = Record<string, CustomTypeModelFieldForSlicePrimary>, ItemFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> { id: ID; name: string; docURL: string; version: string; description: string; primary?: PrimaryFields; items?: ItemFields; imageUrl: string; } //#endregion export { SharedSliceModelVariation }; //# sourceMappingURL=sharedSliceVariation.d.cts.map