@prismicio/types-internal 3.16.2-alpha.1 → 3.16.2-alpha.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.
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- import { type StaticSlices } from "../../../customtypes";
2
+ import { type StaticSlices, CompositeSlice, Group, NestableWidget, VariationFields } from "../../../customtypes";
3
3
  import type { LegacyContentCtx, WithTypes } from "../../LegacyContentCtx";
4
4
  import { ContentPath, TraverseSliceContentFn, TraverseSliceContentWithModelFn, TraverseWidgetContentFn, TraverseWidgetContentWithModelFn } from "../../utils";
5
5
  export declare const SlicesContentType = "SliceContentType";
@@ -2979,6 +2979,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
2979
2979
  }[];
2980
2980
  };
2981
2981
  declare type SlicesLegacy = Array<unknown>;
2982
+ export declare type SliceModel = VariationFields | NestableWidget | CompositeSlice | Group;
2982
2983
  export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
2983
2984
  __TYPE__: "SliceContentType";
2984
2985
  value: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "3.16.2-alpha.1",
3
+ "version": "3.16.2-alpha.2",
4
4
  "description": "Prismic types for Custom Types and Prismic Data",
5
5
  "keywords": [
6
6
  "typescript",
@@ -68,7 +68,11 @@ export const isSlicesContent = (u: unknown): u is SlicesContent =>
68
68
 
69
69
  type SlicesLegacy = Array<unknown>
70
70
 
71
- type SliceModel = VariationFields | NestableWidget | CompositeSlice | Group
71
+ export type SliceModel =
72
+ | VariationFields
73
+ | NestableWidget
74
+ | CompositeSlice
75
+ | Group
72
76
 
73
77
  export const SlicesLegacy = (ctx: LegacyContentCtx) => {
74
78
  const codec = t.array(SlicesItemLegacy(ctx))