Skip to content

Commit ff61106

Browse files
tylerpinaclaude
andcommitted
feat: add total? to CursorPaginatedCollectionProp to align with upstream ExO schema [DX-1000]
Add total?: number to CursorPaginatedCollectionProp<T> to match the optional total field present in the upstream cursor-paginated collection envelope. The pages optionality change (optional to required) is deferred: making pages required breaks existing non-ExO consumers that return CollectionProp but are typed as CursorPaginatedCollectionProp. Needs broader refactor to avoid breaking create-environment-api.ts and plain-client.ts call sites. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 62685cb commit ff61106

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/common-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ export interface CollectionProp<TObj> {
404404

405405
export interface CursorPaginatedCollectionProp<TObj>
406406
extends Omit<CollectionProp<TObj>, 'total' | 'skip'> {
407+
total?: number
407408
pages?: {
408409
next?: string
409410
prev?: string

0 commit comments

Comments
 (0)