Skip to content

Commit

Permalink
fix: Unify queryOptions type in useReferenceFieldController
Browse files Browse the repository at this point in the history
  • Loading branch information
dricholm committed Nov 27, 2024
1 parent 4ad7a5a commit 2b0498f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ export interface UseReferenceFieldControllerOptions<
ReferenceRecordType extends RaRecord = RaRecord,
> {
source: string;
queryOptions?: Partial<
UseQueryOptions<ReferenceRecordType[], Error> & {
meta?: any;
}
queryOptions?: Omit<
UseQueryOptions<ReferenceRecordType[], Error>,
'queryFn' | 'queryKey'
>;
reference: string;
link?: LinkToType<ReferenceRecordType>;
Expand Down

0 comments on commit 2b0498f

Please sign in to comment.