Optional Methods on Request Class? #96
Answered
by
kwhitley
michaelmerrill
asked this question in
Q&A
-
Why are all the methods on the
|
Beta Was this translation helpful? Give feedback.
Answered by
kwhitley
Mar 29, 2022
Replies: 1 comment 1 reply
-
All are optional because itty intentionally does not require a true Request object... merely an object two properties { method, url }. Our TS contributors added the optional signatures for code-hinting. We'll investigate this, and if you find a solution, please share it! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
michaelmerrill
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All are optional because itty intentionally does not require a true Request object... merely an object two properties { method, url }. Our TS contributors added the optional signatures for code-hinting.
We'll investigate this, and if you find a solution, please share it!