@prismicio/types-internal 2.7.0-alpha.5 → 2.7.0-alpha.6
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 +6 -6
- package/lib/content/fields/WidgetContent.d.ts +6 -6
- package/lib/content/fields/nestable/LinkContent.d.ts +3 -3
- package/lib/content/fields/nestable/LinkContent.js +4 -3
- package/lib/content/fields/nestable/NestableContent.d.ts +1 -1
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +3 -3
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +1 -1
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +1 -1
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +1 -1
- package/lib/content/fields/slices/Slice/index.d.ts +5 -5
- package/lib/content/fields/slices/SliceItem.d.ts +5 -5
- package/lib/content/fields/slices/SlicesContent.d.ts +5 -5
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +11 -3
|
@@ -135,7 +135,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
135
135
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
136
136
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
137
137
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
138
|
-
kind: t.
|
|
138
|
+
kind: t.Type<"file", "file", unknown>;
|
|
139
139
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
140
140
|
id: t.StringC;
|
|
141
141
|
url: t.StringC;
|
|
@@ -673,7 +673,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
673
673
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
674
674
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
675
675
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
676
|
-
kind: t.
|
|
676
|
+
kind: t.Type<"file", "file", unknown>;
|
|
677
677
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
678
678
|
id: t.StringC;
|
|
679
679
|
url: t.StringC;
|
|
@@ -1203,7 +1203,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1203
1203
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1204
1204
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1205
1205
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1206
|
-
kind: t.
|
|
1206
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1207
1207
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1208
1208
|
id: t.StringC;
|
|
1209
1209
|
url: t.StringC;
|
|
@@ -1735,7 +1735,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1735
1735
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1736
1736
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1737
1737
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1738
|
-
kind: t.
|
|
1738
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1739
1739
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1740
1740
|
id: t.StringC;
|
|
1741
1741
|
url: t.StringC;
|
|
@@ -2265,7 +2265,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2265
2265
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2266
2266
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2267
2267
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2268
|
-
kind: t.
|
|
2268
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2269
2269
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2270
2270
|
id: t.StringC;
|
|
2271
2271
|
url: t.StringC;
|
|
@@ -2794,7 +2794,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2794
2794
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2795
2795
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2796
2796
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2797
|
-
kind: t.
|
|
2797
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2798
2798
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2799
2799
|
id: t.StringC;
|
|
2800
2800
|
url: t.StringC;
|
|
@@ -132,7 +132,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
132
132
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
133
133
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
134
134
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
135
|
-
kind: t.
|
|
135
|
+
kind: t.Type<"file", "file", unknown>;
|
|
136
136
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
137
137
|
id: t.StringC;
|
|
138
138
|
url: t.StringC;
|
|
@@ -670,7 +670,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
670
670
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
671
671
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
672
672
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
673
|
-
kind: t.
|
|
673
|
+
kind: t.Type<"file", "file", unknown>;
|
|
674
674
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
675
675
|
id: t.StringC;
|
|
676
676
|
url: t.StringC;
|
|
@@ -1200,7 +1200,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1200
1200
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1201
1201
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1202
1202
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1203
|
-
kind: t.
|
|
1203
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1204
1204
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1205
1205
|
id: t.StringC;
|
|
1206
1206
|
url: t.StringC;
|
|
@@ -1732,7 +1732,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1732
1732
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1733
1733
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1734
1734
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1735
|
-
kind: t.
|
|
1735
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1736
1736
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1737
1737
|
id: t.StringC;
|
|
1738
1738
|
url: t.StringC;
|
|
@@ -2262,7 +2262,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2262
2262
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2263
2263
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2264
2264
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2265
|
-
kind: t.
|
|
2265
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2266
2266
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2267
2267
|
id: t.StringC;
|
|
2268
2268
|
url: t.StringC;
|
|
@@ -2791,7 +2791,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2791
2791
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2792
2792
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2793
2793
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2794
|
-
kind: t.
|
|
2794
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2795
2795
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2796
2796
|
id: t.StringC;
|
|
2797
2797
|
url: t.StringC;
|
|
@@ -23,7 +23,7 @@ export declare const FileLinkType = "FileLink";
|
|
|
23
23
|
export declare const FileLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
24
24
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
25
25
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
26
|
-
kind: t.
|
|
26
|
+
kind: t.Type<"file", "file", unknown>;
|
|
27
27
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
28
28
|
id: t.StringC;
|
|
29
29
|
url: t.StringC;
|
|
@@ -403,7 +403,7 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
403
403
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
404
404
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
405
405
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
406
|
-
kind: t.
|
|
406
|
+
kind: t.Type<"file", "file", unknown>;
|
|
407
407
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
408
408
|
id: t.StringC;
|
|
409
409
|
url: t.StringC;
|
|
@@ -471,7 +471,7 @@ export declare const LinkContent: t.ExactC<t.TypeC<{
|
|
|
471
471
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
472
472
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
473
473
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
474
|
-
kind: t.
|
|
474
|
+
kind: t.Type<"file", "file", unknown>;
|
|
475
475
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
476
476
|
id: t.StringC;
|
|
477
477
|
url: t.StringC;
|
|
@@ -51,10 +51,11 @@ exports.ImageLinkContent = t.intersection([
|
|
|
51
51
|
]);
|
|
52
52
|
// FileLink.
|
|
53
53
|
exports.FileLinkType = "FileLink";
|
|
54
|
+
const FileLinkKind = new t.Type("FileLinkKind", (input) => input === "file" || input === "all", (input, context) => input === "file" || input === "all"
|
|
55
|
+
? t.success("file")
|
|
56
|
+
: t.failure(input, context), () => "file");
|
|
54
57
|
const fileLinkLegacyCodec = t.intersection([
|
|
55
|
-
t.strict({
|
|
56
|
-
kind: t.literal("file"),
|
|
57
|
-
}),
|
|
58
|
+
t.strict({ kind: FileLinkKind }),
|
|
58
59
|
t.union([
|
|
59
60
|
t.exact(t.intersection([
|
|
60
61
|
t.type({
|
|
@@ -132,7 +132,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
132
132
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
133
133
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
134
134
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
135
|
-
kind: t.
|
|
135
|
+
kind: t.Type<"file", "file", unknown>;
|
|
136
136
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
137
137
|
id: t.StringC;
|
|
138
138
|
url: t.StringC;
|
|
@@ -19,7 +19,7 @@ export declare const Span: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
19
19
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
20
20
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
21
21
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
22
|
-
kind: t.
|
|
22
|
+
kind: t.Type<"file", "file", unknown>;
|
|
23
23
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
24
24
|
id: t.StringC;
|
|
25
25
|
url: t.StringC;
|
|
@@ -218,7 +218,7 @@ export declare const SpanLegacy: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
218
218
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
219
219
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
220
220
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
221
|
-
kind: t.
|
|
221
|
+
kind: t.Type<"file", "file", unknown>;
|
|
222
222
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
223
223
|
id: t.StringC;
|
|
224
224
|
url: t.StringC;
|
|
@@ -417,7 +417,7 @@ export declare const ValidatedSpans: <C extends t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
417
417
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
418
418
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
419
419
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
420
|
-
kind: t.
|
|
420
|
+
kind: t.Type<"file", "file", unknown>;
|
|
421
421
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
422
422
|
id: t.StringC;
|
|
423
423
|
url: t.StringC;
|
|
@@ -1710,7 +1710,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1710
1710
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1711
1711
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1712
1712
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1713
|
-
kind: t.
|
|
1713
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1714
1714
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1715
1715
|
id: t.StringC;
|
|
1716
1716
|
url: t.StringC;
|
|
@@ -2240,7 +2240,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2240
2240
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2241
2241
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2242
2242
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2243
|
-
kind: t.
|
|
2243
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2244
2244
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2245
2245
|
id: t.StringC;
|
|
2246
2246
|
url: t.StringC;
|
|
@@ -137,7 +137,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
137
137
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
138
138
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
139
139
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
140
|
-
kind: t.
|
|
140
|
+
kind: t.Type<"file", "file", unknown>;
|
|
141
141
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
142
142
|
id: t.StringC;
|
|
143
143
|
url: t.StringC;
|
|
@@ -1714,7 +1714,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1714
1714
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1715
1715
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1716
1716
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1717
|
-
kind: t.
|
|
1717
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1718
1718
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1719
1719
|
id: t.StringC;
|
|
1720
1720
|
url: t.StringC;
|
|
@@ -2244,7 +2244,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
2244
2244
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2245
2245
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2246
2246
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2247
|
-
kind: t.
|
|
2247
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2248
2248
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2249
2249
|
id: t.StringC;
|
|
2250
2250
|
url: t.StringC;
|
|
@@ -135,7 +135,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
135
135
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
136
136
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
137
137
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
138
|
-
kind: t.
|
|
138
|
+
kind: t.Type<"file", "file", unknown>;
|
|
139
139
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
140
140
|
id: t.StringC;
|
|
141
141
|
url: t.StringC;
|
|
@@ -132,7 +132,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
132
132
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
133
133
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
134
134
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
135
|
-
kind: t.
|
|
135
|
+
kind: t.Type<"file", "file", unknown>;
|
|
136
136
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
137
137
|
id: t.StringC;
|
|
138
138
|
url: t.StringC;
|
|
@@ -2091,7 +2091,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2091
2091
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2092
2092
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2093
2093
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2094
|
-
kind: t.
|
|
2094
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2095
2095
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2096
2096
|
id: t.StringC;
|
|
2097
2097
|
url: t.StringC;
|
|
@@ -2621,7 +2621,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2621
2621
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2622
2622
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2623
2623
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2624
|
-
kind: t.
|
|
2624
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2625
2625
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2626
2626
|
id: t.StringC;
|
|
2627
2627
|
url: t.StringC;
|
|
@@ -3153,7 +3153,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
3153
3153
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3154
3154
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
3155
3155
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3156
|
-
kind: t.
|
|
3156
|
+
kind: t.Type<"file", "file", unknown>;
|
|
3157
3157
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3158
3158
|
id: t.StringC;
|
|
3159
3159
|
url: t.StringC;
|
|
@@ -3683,7 +3683,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
3683
3683
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3684
3684
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
3685
3685
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3686
|
-
kind: t.
|
|
3686
|
+
kind: t.Type<"file", "file", unknown>;
|
|
3687
3687
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3688
3688
|
id: t.StringC;
|
|
3689
3689
|
url: t.StringC;
|
|
@@ -4212,7 +4212,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
4212
4212
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4213
4213
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
4214
4214
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4215
|
-
kind: t.
|
|
4215
|
+
kind: t.Type<"file", "file", unknown>;
|
|
4216
4216
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
4217
4217
|
id: t.StringC;
|
|
4218
4218
|
url: t.StringC;
|
|
@@ -143,7 +143,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
143
143
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
144
144
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
145
145
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
146
|
-
kind: t.
|
|
146
|
+
kind: t.Type<"file", "file", unknown>;
|
|
147
147
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
148
148
|
id: t.StringC;
|
|
149
149
|
url: t.StringC;
|
|
@@ -673,7 +673,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
673
673
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
674
674
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
675
675
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
676
|
-
kind: t.
|
|
676
|
+
kind: t.Type<"file", "file", unknown>;
|
|
677
677
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
678
678
|
id: t.StringC;
|
|
679
679
|
url: t.StringC;
|
|
@@ -1205,7 +1205,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1205
1205
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1206
1206
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1207
1207
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1208
|
-
kind: t.
|
|
1208
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1209
1209
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1210
1210
|
id: t.StringC;
|
|
1211
1211
|
url: t.StringC;
|
|
@@ -1735,7 +1735,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1735
1735
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1736
1736
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1737
1737
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1738
|
-
kind: t.
|
|
1738
|
+
kind: t.Type<"file", "file", unknown>;
|
|
1739
1739
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1740
1740
|
id: t.StringC;
|
|
1741
1741
|
url: t.StringC;
|
|
@@ -2264,7 +2264,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2264
2264
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2265
2265
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2266
2266
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2267
|
-
kind: t.
|
|
2267
|
+
kind: t.Type<"file", "file", unknown>;
|
|
2268
2268
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2269
2269
|
id: t.StringC;
|
|
2270
2270
|
url: t.StringC;
|
|
@@ -4069,7 +4069,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4069
4069
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4070
4070
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
4071
4071
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4072
|
-
kind: t.
|
|
4072
|
+
kind: t.Type<"file", "file", unknown>;
|
|
4073
4073
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
4074
4074
|
id: t.StringC;
|
|
4075
4075
|
url: t.StringC;
|
|
@@ -4599,7 +4599,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4599
4599
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4600
4600
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
4601
4601
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4602
|
-
kind: t.
|
|
4602
|
+
kind: t.Type<"file", "file", unknown>;
|
|
4603
4603
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
4604
4604
|
id: t.StringC;
|
|
4605
4605
|
url: t.StringC;
|
|
@@ -5131,7 +5131,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5131
5131
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5132
5132
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
5133
5133
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5134
|
-
kind: t.
|
|
5134
|
+
kind: t.Type<"file", "file", unknown>;
|
|
5135
5135
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
5136
5136
|
id: t.StringC;
|
|
5137
5137
|
url: t.StringC;
|
|
@@ -5661,7 +5661,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5661
5661
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5662
5662
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
5663
5663
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5664
|
-
kind: t.
|
|
5664
|
+
kind: t.Type<"file", "file", unknown>;
|
|
5665
5665
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
5666
5666
|
id: t.StringC;
|
|
5667
5667
|
url: t.StringC;
|
|
@@ -6190,7 +6190,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6190
6190
|
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6191
6191
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
6192
6192
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6193
|
-
kind: t.
|
|
6193
|
+
kind: t.Type<"file", "file", unknown>;
|
|
6194
6194
|
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
6195
6195
|
id: t.StringC;
|
|
6196
6196
|
url: t.StringC;
|
package/package.json
CHANGED
|
@@ -70,10 +70,18 @@ export type ImageLinkContent = t.TypeOf<typeof ImageLinkContent>
|
|
|
70
70
|
|
|
71
71
|
export const FileLinkType = "FileLink"
|
|
72
72
|
|
|
73
|
+
const FileLinkKind = new t.Type<"file">(
|
|
74
|
+
"FileLinkKind",
|
|
75
|
+
(input): input is "file" => input === "file" || input === "all",
|
|
76
|
+
(input, context) =>
|
|
77
|
+
input === "file" || input === "all"
|
|
78
|
+
? t.success("file" as const)
|
|
79
|
+
: t.failure(input, context),
|
|
80
|
+
() => "file" as const,
|
|
81
|
+
)
|
|
82
|
+
|
|
73
83
|
const fileLinkLegacyCodec = t.intersection([
|
|
74
|
-
t.strict({
|
|
75
|
-
kind: t.literal("file"),
|
|
76
|
-
}),
|
|
84
|
+
t.strict({ kind: FileLinkKind }),
|
|
77
85
|
t.union([
|
|
78
86
|
t.exact(
|
|
79
87
|
t.intersection([
|