@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
29 lines (27 loc) • 1.07 kB
text/typescript
import { CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldType } from "./types.cjs";
//#region src/types/model/group.d.ts
/**
* A group custom type field.
*
* More details: {@link https://prismic.io/docs/group}
*
* @typeParam Fields - A record of fields that can be repeated.
*/
interface CustomTypeModelGroupField<Fields extends Record<string, CustomTypeModelFieldForGroup> = Record<string, CustomTypeModelFieldForGroup>> {
type: typeof CustomTypeModelFieldType.Group;
config?: {
label?: string | null;
fields?: Fields;
};
}
/**
* A nested group custom type field.
*
* More details: {@link https://prismic.io/docs/group}
*
* @typeParam Fields - A record of fields that can be repeated.
*/
type CustomTypeModelNestedGroupField<Fields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> = CustomTypeModelGroupField<Fields>;
//#endregion
export { CustomTypeModelGroupField, CustomTypeModelNestedGroupField };
//# sourceMappingURL=group.d.cts.map