Add GenericType to GatsbyFunctionRequest #33953
Answered
by
LekoArts
njbmartin
asked this question in
Ideas / Feature Requests
-
When using typescript, it would be great if /**
* Gatsby function route request
*/
export interface GatsbyFunctionRequest<T = any> extends IncomingMessage {
/**
* Object of values from URL query parameters (after the ? in the URL)
*/
query: Record<string, string>
/**
* Object of values from route parameters
*/
params: Record<string, string>
body: T
/**
* Object of `cookies` from header
*/
cookies: Record<string, string>
} |
Beta Was this translation helpful? Give feedback.
Answered by
LekoArts
Mar 14, 2022
Replies: 1 comment
-
Done in #35029 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LekoArts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Done in #35029