In the example above, adding the refetchIntervalhihi option does not cause a type warning.
Invalid queryOptions such as hihi are omitted and no error occurs at runtime, making it safe.
However, I think it can cause confusion because it does not work even though I entered a valid option in react-query. is there a reason not to perform strict type checking for queryOption, which is currently not supported, including the refetchInterval option?
Currently, queryOptions except
'queryKey' | 'queryFn' | 'contextQueries'
are omitted.In the example above, adding the
refetchInterval
hihi
option does not cause a type warning. Invalid queryOptions such as hihi are omitted and no error occurs at runtime, making it safe.However, I think it can cause confusion because it does not work even though I entered a valid option in react-query. is there a reason not to perform strict type checking for queryOption, which is currently not supported, including the refetchInterval option?