Replies: 1 comment 1 reply
-
For now, what seems to work is using the export interface RestRequestOptions<D> {
read: () => Method<any, any, any, any, any, AlovaXHRResponse<any>, AlovaXHRResponseHeaders>;
update: (
value: D
) => Method<any, unknown, unknown, unknown, AlovaXHRRequestConfig, AlovaXHRResponse<any>, AlovaXHRResponseHeaders>;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my React/Typescript I'd like pass method functions to a generic component for reading and writing settings. For example I would have
And in the generic component, something like:
What I'm not sure about is the generic type of the .Get and .Post methods that I can use to replace my old
AxiosPromise
I have looked through all the GH postings and code snippets but can't find a way. Can you help?
Beta Was this translation helpful? Give feedback.
All reactions