(
options?: OmitKeyof<
UseQueryOptions<string>,
'queryKey' | 'queryFn',
'safely'
>,
)
| 139 | describe('custom composable', () => { |
| 140 | it('should allow custom composable using UseQueryOptions', () => { |
| 141 | const useCustomQuery = ( |
| 142 | options?: OmitKeyof< |
| 143 | UseQueryOptions<string>, |
| 144 | 'queryKey' | 'queryFn', |
| 145 | 'safely' |
| 146 | >, |
| 147 | ) => { |
| 148 | return useQuery({ |
| 149 | ...options, |
| 150 | queryKey: ['todos-key'], |
| 151 | queryFn: () => Promise.resolve('data'), |
| 152 | }) |
| 153 | } |
| 154 | |
| 155 | const { data } = reactive(useCustomQuery()) |
| 156 |
no test coverage detected
searching dependent graphs…