@dotcms/types 1.5.5-next.2290 → 1.5.5-next.2294
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 +1 -1
- package/src/lib/page/public.d.ts +6 -1
package/package.json
CHANGED
package/src/lib/page/public.d.ts
CHANGED
|
@@ -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
|
-
|
|
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>;
|