@prismicio/types-internal 2.9.0-alpha.2 → 2.9.0-alpha.4
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/lib/content/Document.d.ts +36 -36
- package/lib/content/fields/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/WidgetContent.d.ts +36 -36
- package/lib/content/fields/nestable/LinkContent.d.ts +8 -8
- package/lib/content/fields/nestable/LinkContent.js +1 -3
- package/lib/content/fields/nestable/NestableContent.d.ts +6 -6
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +12 -12
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +12 -12
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +6 -6
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +6 -6
- package/lib/content/fields/slices/Slice/index.d.ts +20 -20
- package/lib/content/fields/slices/SliceItem.d.ts +20 -20
- package/lib/content/fields/slices/SlicesContent.d.ts +30 -30
- package/package.json +2 -1
- package/src/content/fields/nestable/LinkContent.ts +1 -3
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
- package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
|
@@ -189,7 +189,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
189
189
|
text: t.StringC;
|
|
190
190
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
191
191
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
192
|
-
}>>, t.ExactC<t.
|
|
192
|
+
}>>, t.ExactC<t.PartialC<{
|
|
193
193
|
text: t.StringC;
|
|
194
194
|
}>>]>]>;
|
|
195
195
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -503,7 +503,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
503
503
|
text: t.StringC;
|
|
504
504
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
505
505
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
506
|
-
}>>, t.ExactC<t.
|
|
506
|
+
}>>, t.ExactC<t.PartialC<{
|
|
507
507
|
text: t.StringC;
|
|
508
508
|
}>>]>]>;
|
|
509
509
|
}>>>;
|
|
@@ -687,7 +687,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
687
687
|
text: t.StringC;
|
|
688
688
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
689
689
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
690
|
-
}>>, t.ExactC<t.
|
|
690
|
+
}>>, t.ExactC<t.PartialC<{
|
|
691
691
|
text: t.StringC;
|
|
692
692
|
}>>]>]>;
|
|
693
693
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1001,7 +1001,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1001
1001
|
text: t.StringC;
|
|
1002
1002
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1003
1003
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1004
|
-
}>>, t.ExactC<t.
|
|
1004
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1005
1005
|
text: t.StringC;
|
|
1006
1006
|
}>>]>]>;
|
|
1007
1007
|
}>>>;
|
|
@@ -1187,7 +1187,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1187
1187
|
text: t.StringC;
|
|
1188
1188
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1189
1189
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1190
|
-
}>>, t.ExactC<t.
|
|
1190
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1191
1191
|
text: t.StringC;
|
|
1192
1192
|
}>>]>]>;
|
|
1193
1193
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1501,7 +1501,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1501
1501
|
text: t.StringC;
|
|
1502
1502
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1503
1503
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1504
|
-
}>>, t.ExactC<t.
|
|
1504
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1505
1505
|
text: t.StringC;
|
|
1506
1506
|
}>>]>]>;
|
|
1507
1507
|
}>>>;
|
|
@@ -1685,7 +1685,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1685
1685
|
text: t.StringC;
|
|
1686
1686
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1687
1687
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1688
|
-
}>>, t.ExactC<t.
|
|
1688
|
+
}>>, t.ExactC<t.PartialC<{
|
|
1689
1689
|
text: t.StringC;
|
|
1690
1690
|
}>>]>]>;
|
|
1691
1691
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1999,7 +1999,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1999
1999
|
text: t.StringC;
|
|
2000
2000
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2001
2001
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2002
|
-
}>>, t.ExactC<t.
|
|
2002
|
+
}>>, t.ExactC<t.PartialC<{
|
|
2003
2003
|
text: t.StringC;
|
|
2004
2004
|
}>>]>]>;
|
|
2005
2005
|
}>>>;
|
|
@@ -2182,7 +2182,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2182
2182
|
text: t.StringC;
|
|
2183
2183
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2184
2184
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2185
|
-
}>>, t.ExactC<t.
|
|
2185
|
+
}>>, t.ExactC<t.PartialC<{
|
|
2186
2186
|
text: t.StringC;
|
|
2187
2187
|
}>>]>]>;
|
|
2188
2188
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -2496,7 +2496,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2496
2496
|
text: t.StringC;
|
|
2497
2497
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2498
2498
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2499
|
-
}>>, t.ExactC<t.
|
|
2499
|
+
}>>, t.ExactC<t.PartialC<{
|
|
2500
2500
|
text: t.StringC;
|
|
2501
2501
|
}>>]>]>;
|
|
2502
2502
|
}>>>;
|
|
@@ -2698,7 +2698,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2698
2698
|
})) | ({
|
|
2699
2699
|
__TYPE__: "AnyLink";
|
|
2700
2700
|
} & {
|
|
2701
|
-
text
|
|
2701
|
+
text?: string;
|
|
2702
2702
|
});
|
|
2703
2703
|
} | {
|
|
2704
2704
|
__TYPE__: "RepeatableContent";
|
|
@@ -2769,7 +2769,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2769
2769
|
})) | ({
|
|
2770
2770
|
__TYPE__: "AnyLink";
|
|
2771
2771
|
} & {
|
|
2772
|
-
text
|
|
2772
|
+
text?: string;
|
|
2773
2773
|
});
|
|
2774
2774
|
}[];
|
|
2775
2775
|
} | import("../GroupContent").GroupContent | {
|
|
@@ -3108,7 +3108,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3108
3108
|
})) | ({
|
|
3109
3109
|
__TYPE__: "AnyLink";
|
|
3110
3110
|
} & {
|
|
3111
|
-
text
|
|
3111
|
+
text?: string;
|
|
3112
3112
|
});
|
|
3113
3113
|
} | {
|
|
3114
3114
|
__TYPE__: "RepeatableContent";
|
|
@@ -3179,7 +3179,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3179
3179
|
})) | ({
|
|
3180
3180
|
__TYPE__: "AnyLink";
|
|
3181
3181
|
} & {
|
|
3182
|
-
text
|
|
3182
|
+
text?: string;
|
|
3183
3183
|
});
|
|
3184
3184
|
}[];
|
|
3185
3185
|
} | {
|
|
@@ -3519,7 +3519,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3519
3519
|
})) | ({
|
|
3520
3520
|
__TYPE__: "AnyLink";
|
|
3521
3521
|
} & {
|
|
3522
|
-
text
|
|
3522
|
+
text?: string;
|
|
3523
3523
|
});
|
|
3524
3524
|
} | {
|
|
3525
3525
|
__TYPE__: "RepeatableContent";
|
|
@@ -3590,7 +3590,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3590
3590
|
})) | ({
|
|
3591
3591
|
__TYPE__: "AnyLink";
|
|
3592
3592
|
} & {
|
|
3593
|
-
text
|
|
3593
|
+
text?: string;
|
|
3594
3594
|
});
|
|
3595
3595
|
}[];
|
|
3596
3596
|
} | import("../GroupContent").GroupContent | {
|
|
@@ -3932,7 +3932,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3932
3932
|
})) | ({
|
|
3933
3933
|
__TYPE__: "AnyLink";
|
|
3934
3934
|
} & {
|
|
3935
|
-
text
|
|
3935
|
+
text?: string;
|
|
3936
3936
|
});
|
|
3937
3937
|
} | {
|
|
3938
3938
|
__TYPE__: "RepeatableContent";
|
|
@@ -4003,7 +4003,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
4003
4003
|
})) | ({
|
|
4004
4004
|
__TYPE__: "AnyLink";
|
|
4005
4005
|
} & {
|
|
4006
|
-
text
|
|
4006
|
+
text?: string;
|
|
4007
4007
|
});
|
|
4008
4008
|
}[];
|
|
4009
4009
|
} | import("../GroupContent").GroupContent | {
|
|
@@ -4343,7 +4343,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
4343
4343
|
})) | ({
|
|
4344
4344
|
__TYPE__: "AnyLink";
|
|
4345
4345
|
} & {
|
|
4346
|
-
text
|
|
4346
|
+
text?: string;
|
|
4347
4347
|
});
|
|
4348
4348
|
} | {
|
|
4349
4349
|
__TYPE__: "RepeatableContent";
|
|
@@ -4414,7 +4414,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
4414
4414
|
})) | ({
|
|
4415
4415
|
__TYPE__: "AnyLink";
|
|
4416
4416
|
} & {
|
|
4417
|
-
text
|
|
4417
|
+
text?: string;
|
|
4418
4418
|
});
|
|
4419
4419
|
}[];
|
|
4420
4420
|
} | import("../GroupContent").GroupContent | {
|
|
@@ -187,7 +187,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
187
187
|
})) | ({
|
|
188
188
|
__TYPE__: "AnyLink";
|
|
189
189
|
} & {
|
|
190
|
-
text
|
|
190
|
+
text?: string;
|
|
191
191
|
});
|
|
192
192
|
} | {
|
|
193
193
|
__TYPE__: "RepeatableContent";
|
|
@@ -258,7 +258,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
258
258
|
})) | ({
|
|
259
259
|
__TYPE__: "AnyLink";
|
|
260
260
|
} & {
|
|
261
|
-
text
|
|
261
|
+
text?: string;
|
|
262
262
|
});
|
|
263
263
|
}[];
|
|
264
264
|
} | import("..").GroupContent | {
|
|
@@ -597,7 +597,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
597
597
|
})) | ({
|
|
598
598
|
__TYPE__: "AnyLink";
|
|
599
599
|
} & {
|
|
600
|
-
text
|
|
600
|
+
text?: string;
|
|
601
601
|
});
|
|
602
602
|
} | {
|
|
603
603
|
__TYPE__: "RepeatableContent";
|
|
@@ -668,7 +668,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
668
668
|
})) | ({
|
|
669
669
|
__TYPE__: "AnyLink";
|
|
670
670
|
} & {
|
|
671
|
-
text
|
|
671
|
+
text?: string;
|
|
672
672
|
});
|
|
673
673
|
}[];
|
|
674
674
|
} | {
|
|
@@ -1008,7 +1008,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1008
1008
|
})) | ({
|
|
1009
1009
|
__TYPE__: "AnyLink";
|
|
1010
1010
|
} & {
|
|
1011
|
-
text
|
|
1011
|
+
text?: string;
|
|
1012
1012
|
});
|
|
1013
1013
|
} | {
|
|
1014
1014
|
__TYPE__: "RepeatableContent";
|
|
@@ -1079,7 +1079,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1079
1079
|
})) | ({
|
|
1080
1080
|
__TYPE__: "AnyLink";
|
|
1081
1081
|
} & {
|
|
1082
|
-
text
|
|
1082
|
+
text?: string;
|
|
1083
1083
|
});
|
|
1084
1084
|
}[];
|
|
1085
1085
|
} | import("..").GroupContent | {
|
|
@@ -1421,7 +1421,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1421
1421
|
})) | ({
|
|
1422
1422
|
__TYPE__: "AnyLink";
|
|
1423
1423
|
} & {
|
|
1424
|
-
text
|
|
1424
|
+
text?: string;
|
|
1425
1425
|
});
|
|
1426
1426
|
} | {
|
|
1427
1427
|
__TYPE__: "RepeatableContent";
|
|
@@ -1492,7 +1492,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1492
1492
|
})) | ({
|
|
1493
1493
|
__TYPE__: "AnyLink";
|
|
1494
1494
|
} & {
|
|
1495
|
-
text
|
|
1495
|
+
text?: string;
|
|
1496
1496
|
});
|
|
1497
1497
|
}[];
|
|
1498
1498
|
} | import("..").GroupContent | {
|
|
@@ -1832,7 +1832,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1832
1832
|
})) | ({
|
|
1833
1833
|
__TYPE__: "AnyLink";
|
|
1834
1834
|
} & {
|
|
1835
|
-
text
|
|
1835
|
+
text?: string;
|
|
1836
1836
|
});
|
|
1837
1837
|
} | {
|
|
1838
1838
|
__TYPE__: "RepeatableContent";
|
|
@@ -1903,7 +1903,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1903
1903
|
})) | ({
|
|
1904
1904
|
__TYPE__: "AnyLink";
|
|
1905
1905
|
} & {
|
|
1906
|
-
text
|
|
1906
|
+
text?: string;
|
|
1907
1907
|
});
|
|
1908
1908
|
}[];
|
|
1909
1909
|
} | import("..").GroupContent | {
|
|
@@ -2251,7 +2251,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2251
2251
|
})) | ({
|
|
2252
2252
|
__TYPE__: "AnyLink";
|
|
2253
2253
|
} & {
|
|
2254
|
-
text
|
|
2254
|
+
text?: string;
|
|
2255
2255
|
});
|
|
2256
2256
|
} | {
|
|
2257
2257
|
__TYPE__: "RepeatableContent";
|
|
@@ -2322,7 +2322,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2322
2322
|
})) | ({
|
|
2323
2323
|
__TYPE__: "AnyLink";
|
|
2324
2324
|
} & {
|
|
2325
|
-
text
|
|
2325
|
+
text?: string;
|
|
2326
2326
|
});
|
|
2327
2327
|
}[];
|
|
2328
2328
|
} | import("..").GroupContent | {
|
|
@@ -2661,7 +2661,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2661
2661
|
})) | ({
|
|
2662
2662
|
__TYPE__: "AnyLink";
|
|
2663
2663
|
} & {
|
|
2664
|
-
text
|
|
2664
|
+
text?: string;
|
|
2665
2665
|
});
|
|
2666
2666
|
} | {
|
|
2667
2667
|
__TYPE__: "RepeatableContent";
|
|
@@ -2732,7 +2732,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2732
2732
|
})) | ({
|
|
2733
2733
|
__TYPE__: "AnyLink";
|
|
2734
2734
|
} & {
|
|
2735
|
-
text
|
|
2735
|
+
text?: string;
|
|
2736
2736
|
});
|
|
2737
2737
|
}[];
|
|
2738
2738
|
} | {
|
|
@@ -3072,7 +3072,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3072
3072
|
})) | ({
|
|
3073
3073
|
__TYPE__: "AnyLink";
|
|
3074
3074
|
} & {
|
|
3075
|
-
text
|
|
3075
|
+
text?: string;
|
|
3076
3076
|
});
|
|
3077
3077
|
} | {
|
|
3078
3078
|
__TYPE__: "RepeatableContent";
|
|
@@ -3143,7 +3143,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3143
3143
|
})) | ({
|
|
3144
3144
|
__TYPE__: "AnyLink";
|
|
3145
3145
|
} & {
|
|
3146
|
-
text
|
|
3146
|
+
text?: string;
|
|
3147
3147
|
});
|
|
3148
3148
|
}[];
|
|
3149
3149
|
} | import("..").GroupContent | {
|
|
@@ -3485,7 +3485,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3485
3485
|
})) | ({
|
|
3486
3486
|
__TYPE__: "AnyLink";
|
|
3487
3487
|
} & {
|
|
3488
|
-
text
|
|
3488
|
+
text?: string;
|
|
3489
3489
|
});
|
|
3490
3490
|
} | {
|
|
3491
3491
|
__TYPE__: "RepeatableContent";
|
|
@@ -3556,7 +3556,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3556
3556
|
})) | ({
|
|
3557
3557
|
__TYPE__: "AnyLink";
|
|
3558
3558
|
} & {
|
|
3559
|
-
text
|
|
3559
|
+
text?: string;
|
|
3560
3560
|
});
|
|
3561
3561
|
}[];
|
|
3562
3562
|
} | import("..").GroupContent | {
|
|
@@ -3896,7 +3896,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3896
3896
|
})) | ({
|
|
3897
3897
|
__TYPE__: "AnyLink";
|
|
3898
3898
|
} & {
|
|
3899
|
-
text
|
|
3899
|
+
text?: string;
|
|
3900
3900
|
});
|
|
3901
3901
|
} | {
|
|
3902
3902
|
__TYPE__: "RepeatableContent";
|
|
@@ -3967,7 +3967,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3967
3967
|
})) | ({
|
|
3968
3968
|
__TYPE__: "AnyLink";
|
|
3969
3969
|
} & {
|
|
3970
|
-
text
|
|
3970
|
+
text?: string;
|
|
3971
3971
|
});
|
|
3972
3972
|
}[];
|
|
3973
3973
|
} | import("..").GroupContent | {
|
|
@@ -4315,7 +4315,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4315
4315
|
text: t.StringC;
|
|
4316
4316
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4317
4317
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
4318
|
-
}>>, t.ExactC<t.
|
|
4318
|
+
}>>, t.ExactC<t.PartialC<{
|
|
4319
4319
|
text: t.StringC;
|
|
4320
4320
|
}>>]>]>;
|
|
4321
4321
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -4629,7 +4629,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4629
4629
|
text: t.StringC;
|
|
4630
4630
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4631
4631
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
4632
|
-
}>>, t.ExactC<t.
|
|
4632
|
+
}>>, t.ExactC<t.PartialC<{
|
|
4633
4633
|
text: t.StringC;
|
|
4634
4634
|
}>>]>]>;
|
|
4635
4635
|
}>>>;
|
|
@@ -4813,7 +4813,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4813
4813
|
text: t.StringC;
|
|
4814
4814
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4815
4815
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
4816
|
-
}>>, t.ExactC<t.
|
|
4816
|
+
}>>, t.ExactC<t.PartialC<{
|
|
4817
4817
|
text: t.StringC;
|
|
4818
4818
|
}>>]>]>;
|
|
4819
4819
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -5127,7 +5127,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5127
5127
|
text: t.StringC;
|
|
5128
5128
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5129
5129
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
5130
|
-
}>>, t.ExactC<t.
|
|
5130
|
+
}>>, t.ExactC<t.PartialC<{
|
|
5131
5131
|
text: t.StringC;
|
|
5132
5132
|
}>>]>]>;
|
|
5133
5133
|
}>>>;
|
|
@@ -5313,7 +5313,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5313
5313
|
text: t.StringC;
|
|
5314
5314
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5315
5315
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
5316
|
-
}>>, t.ExactC<t.
|
|
5316
|
+
}>>, t.ExactC<t.PartialC<{
|
|
5317
5317
|
text: t.StringC;
|
|
5318
5318
|
}>>]>]>;
|
|
5319
5319
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -5627,7 +5627,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5627
5627
|
text: t.StringC;
|
|
5628
5628
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5629
5629
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
5630
|
-
}>>, t.ExactC<t.
|
|
5630
|
+
}>>, t.ExactC<t.PartialC<{
|
|
5631
5631
|
text: t.StringC;
|
|
5632
5632
|
}>>]>]>;
|
|
5633
5633
|
}>>>;
|
|
@@ -5811,7 +5811,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5811
5811
|
text: t.StringC;
|
|
5812
5812
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5813
5813
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
5814
|
-
}>>, t.ExactC<t.
|
|
5814
|
+
}>>, t.ExactC<t.PartialC<{
|
|
5815
5815
|
text: t.StringC;
|
|
5816
5816
|
}>>]>]>;
|
|
5817
5817
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -6125,7 +6125,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6125
6125
|
text: t.StringC;
|
|
6126
6126
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6127
6127
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
6128
|
-
}>>, t.ExactC<t.
|
|
6128
|
+
}>>, t.ExactC<t.PartialC<{
|
|
6129
6129
|
text: t.StringC;
|
|
6130
6130
|
}>>]>]>;
|
|
6131
6131
|
}>>>;
|
|
@@ -6308,7 +6308,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6308
6308
|
text: t.StringC;
|
|
6309
6309
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6310
6310
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
6311
|
-
}>>, t.ExactC<t.
|
|
6311
|
+
}>>, t.ExactC<t.PartialC<{
|
|
6312
6312
|
text: t.StringC;
|
|
6313
6313
|
}>>]>]>;
|
|
6314
6314
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -6622,7 +6622,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6622
6622
|
text: t.StringC;
|
|
6623
6623
|
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6624
6624
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
6625
|
-
}>>, t.ExactC<t.
|
|
6625
|
+
}>>, t.ExactC<t.PartialC<{
|
|
6626
6626
|
text: t.StringC;
|
|
6627
6627
|
}>>]>]>;
|
|
6628
6628
|
}>>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/types-internal",
|
|
3
|
-
"version": "2.9.0-alpha.
|
|
3
|
+
"version": "2.9.0-alpha.4",
|
|
4
4
|
"description": "Prismic types for Custom Types and Prismic Data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"release:alpha": "npm run test && standard-version --prerelease alpha --release-as minor && git push --follow-tags && npm run build && npm publish --tag alpha",
|
|
29
29
|
"release:alpha:dry": "standard-version --prerelease alpha --release-as minor --dry-run",
|
|
30
30
|
"test": "jest --no-cache --silent=false --verbose=false --coverage",
|
|
31
|
+
"test:watch": "npm run test -- --watch",
|
|
31
32
|
"test:clear": "jest --clearCache",
|
|
32
33
|
"eslint": "eslint . --cache --cache-location .caches/eslint --cache-strategy content --ext js,ts,tsx --max-warnings 0",
|
|
33
34
|
"eslint-fix": "npm run eslint -- --fix",
|
|
@@ -429,9 +429,7 @@ export type ExternalLinkContent = t.TypeOf<typeof ExternalLinkContent>
|
|
|
429
429
|
|
|
430
430
|
export const AnyLinkType = "AnyLink"
|
|
431
431
|
|
|
432
|
-
const anyLinkLegacyCodec = t.
|
|
433
|
-
text: t.string,
|
|
434
|
-
})
|
|
432
|
+
const anyLinkLegacyCodec = t.exact(t.partial({ text: t.string }))
|
|
435
433
|
|
|
436
434
|
type AnyLinkLegacy = t.TypeOf<typeof anyLinkLegacyCodec>
|
|
437
435
|
const AnyLinkLegacy = new t.Type<AnyLinkContent, AnyLinkLegacy>(
|