@prismicio/types-internal 3.2.0-alpha.2 → 3.2.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.
@@ -158,7 +158,6 @@ function traverseDocument({ document, customType, }) {
158
158
  { key, type: "Widget" },
159
159
  ]);
160
160
  const transformedWidget = (() => {
161
- var _a;
162
161
  switch (content.__TYPE__) {
163
162
  case "SliceContentType":
164
163
  return (0, fields_1.traverseSlices)({
@@ -182,9 +181,7 @@ function traverseDocument({ document, customType, }) {
182
181
  path,
183
182
  key,
184
183
  apiId: key,
185
- model: (fieldModel === null || fieldModel === void 0 ? void 0 : fieldModel.type) === "Link" && ((_a = fieldModel.config) === null || _a === void 0 ? void 0 : _a.repeat)
186
- ? fieldModel
187
- : undefined,
184
+ model: (fieldModel === null || fieldModel === void 0 ? void 0 : fieldModel.type) === "Link" ? fieldModel : undefined,
188
185
  content,
189
186
  })(transformWidget);
190
187
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "3.2.0-alpha.2",
3
+ "version": "3.2.0-alpha.4",
4
4
  "description": "Prismic types for Custom Types and Prismic Data",
5
5
  "keywords": [
6
6
  "typescript",
@@ -299,10 +299,7 @@ export function traverseDocument({
299
299
  path,
300
300
  key,
301
301
  apiId: key,
302
- model:
303
- fieldModel?.type === "Link" && fieldModel.config?.repeat
304
- ? fieldModel
305
- : undefined,
302
+ model: fieldModel?.type === "Link" ? fieldModel : undefined,
306
303
  content,
307
304
  })(transformWidget)
308
305
  default: