@prismicio/types-internal 3.16.1 → 3.17.0-alpha.0

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.
@@ -2239,6 +2239,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2239
2239
  page: string;
2240
2240
  custom: string;
2241
2241
  }>;
2242
+ route: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2242
2243
  }>]>>;
2243
2244
  export declare type StaticCustomType = t.TypeOf<typeof StaticCustomType>;
2244
2245
  export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -3660,6 +3661,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
3660
3661
  page: string;
3661
3662
  custom: string;
3662
3663
  }>;
3664
+ route: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3663
3665
  }>]>>;
3664
3666
  export declare type CustomType = t.TypeOf<typeof CustomType>;
3665
3667
  export declare function flattenWidgets(customType: CustomType): Array<[string, DynamicWidget]>;
@@ -47,6 +47,7 @@ function customTypeReader(codec) {
47
47
  }),
48
48
  t.partial({
49
49
  format: (0, withFallback_1.withFallback)(t.keyof(exports.CustomTypeFormat), "custom"),
50
+ route: validators_1.StringOrNull,
50
51
  }),
51
52
  ]));
52
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "3.16.1",
3
+ "version": "3.17.0-alpha.0",
4
4
  "description": "Prismic types for Custom Types and Prismic Data",
5
5
  "keywords": [
6
6
  "typescript",
@@ -54,6 +54,7 @@ function customTypeReader<T extends StaticSection | DynamicSection>(
54
54
  }),
55
55
  t.partial({
56
56
  format: withFallback(t.keyof(CustomTypeFormat), "custom"),
57
+ route: StringOrNull,
57
58
  }),
58
59
  ]),
59
60
  )