Easy and maintainable way to extract paramters / args type from client-fetch functions? #1933
-
The function we use with the export const getArticles = <ThrowOnError extends boolean = true>(
options?: Options<ArticlesData, ThrowOnError>,
) => { /* … */ } Since we do not use the tanstack/query plugin we create the QuestionWhat is the recommended way to use the type given for parameters of a fetch function from outside? (…that is ideally "migrating safe" for future updates of the library Considered Approaches1. Use
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey!
The bigger question I'd like to understand is this
Can you elaborate on why? Maybe solving this would be the better path forward |
Beta Was this translation helpful? Give feedback.
Hey!
The bigger question I'd like to understand is this
Can you elaborate on why? Maybe solving this would be the better path forward