prismic-ts-codegen 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts ADDED
@@ -0,0 +1,27 @@
1
+ import type {
2
+ CustomTypeModel,
3
+ CustomTypeModelField,
4
+ CustomTypeModelSlice,
5
+ SharedSliceModel,
6
+ } from "@prismicio/types";
7
+
8
+ export type PathElement<
9
+ Model extends
10
+ | CustomTypeModel
11
+ | SharedSliceModel
12
+ | CustomTypeModelField
13
+ | CustomTypeModelSlice,
14
+ > = {
15
+ id: string;
16
+ model?: Model;
17
+ label?: string;
18
+ };
19
+
20
+ export type FieldConfigs = {
21
+ embed?: {
22
+ providerTypes?: Record<string, string>;
23
+ };
24
+ integrationFields?: {
25
+ catalogTypes?: Record<string, string>;
26
+ };
27
+ };