{"version":3,"file":"slice.cjs","names":[],"sources":["../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelNestedGroupField } from \"./group\"\nimport type { CustomTypeModelSliceType } from \"./sliceZone\"\nimport type { CustomTypeModelFieldForNestedGroup } from \"./types\"\n\n/**\n * A Slice for a custom type.\n *\n * More details: {@link https://prismic.io/docs/slice}\n *\n * @typeParam NonRepeatFields - A record of fields that cannnot be repeated.\n * @typeParam RepeatFields - A record of fields that can be repeated.\n */\nexport interface CustomTypeModelSlice<\n\tNonRepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t>,\n\tRepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t>,\n> {\n\ttype: typeof CustomTypeModelSliceType.Slice\n\tfieldset?: string | null\n\tdescription?: string\n\ticon?: string\n\tdisplay?: (typeof CustomTypeModelSliceDisplay)[keyof typeof CustomTypeModelSliceDisplay] | string\n\t\"non-repeat\"?: NonRepeatFields\n\trepeat?: RepeatFields\n}\n\n/**\n * Display type for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport const CustomTypeModelSliceDisplay = {\n\tList: \"list\",\n\tGrid: \"grid\",\n} as const\n\n/** @deprecated - Legacy slice type. Do not use. */\nexport type CustomTypeModelLegacySlice =\n\t| CustomTypeModelNestedGroupField\n\t| CustomTypeModelFieldForNestedGroup\n"],"mappings":";;;;;;AAoCA,MAAa,8BAA8B;CAC1C,MAAM;CACN,MAAM;CACN"}