Skip to content

Commit a377471

Browse files
tylerpinaclaude
andcommitted
feat: type ExO query filter parameters for Fragment [DX-935]
Replace [key: string]: unknown catch-all in FragmentQueryOptions with the shared ExoQueryFilters type, consistent with Template and Experience. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5a82e8c commit a377471

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/entities/fragment.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type {
33
CursorPaginatedCollectionProp,
44
CursorPaginationParams,
55
ExoMetadataProps,
6+
ExoQueryFilters,
67
Link,
78
} from '../common-types'
89
import type {
@@ -67,9 +68,9 @@ export type UpdateFragmentProps = Omit<FragmentProps, 'sys'> & {
6768
componentTypeId: string
6869
}
6970

70-
export type FragmentQueryOptions = CursorPaginationParams & {
71-
order?: string
72-
[key: string]: unknown
73-
}
71+
export type FragmentQueryOptions = CursorPaginationParams &
72+
ExoQueryFilters & {
73+
order?: string
74+
}
7475

7576
export type FragmentCollection = CursorPaginatedCollectionProp<FragmentProps>

0 commit comments

Comments
 (0)