orval
orval copied to clipboard
Feature Request: Add specific types for query keys
Current the svelte query generates the following sample api.
export const getGetDataFeedStreamTradesCachedQueryKey =
(params: GetDataFeedStreamTradesCachedParams,) =>
[`/data-feed/stream/trades-cached`, ...(params ? [params]: [])];
It would be nicer if type for getGetDataFeedStreamTradesCachedQueryKey was instead generated as
[string, GetDataFeedStreamTradesCachedParams] instead of auto inferred to (string | GetDataFeedStreamTradesCachedParams)[]
Use case is that sometimes you need to use the url and param for fetch api for streaming http chunks instead of normal request/response which isn't supported by axios.