@dotcms/types 1.5.5-next.2290 → 1.5.5-next.2293

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/types",
3
- "version": "1.5.5-next.2290",
3
+ "version": "1.5.5-next.2293",
4
4
  "keywords": [
5
5
  "dotCMS",
6
6
  "CMS",
@@ -1190,7 +1190,12 @@ export interface DotCMSPageResponse {
1190
1190
  * @deprecated Use `errors` instead. Will be removed in August 2026. Kept for backward compatibility — represents the first GraphQL error when present.
1191
1191
  */
1192
1192
  error?: DotCMSGraphQLError;
1193
- errors?: DotCMSGraphQLError[];
1193
+ /**
1194
+ * GraphQL errors surfaced by the request. Always an array — empty when there are none — so the
1195
+ * response stays JSON-serializable (Next.js Pages Router rejects `undefined` props). Check
1196
+ * `errors.length`, not `errors != null`.
1197
+ */
1198
+ errors: DotCMSGraphQLError[];
1194
1199
  graphql: {
1195
1200
  query: string;
1196
1201
  variables: Record<string, unknown>;