-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export Request and Obj types? #38
Comments
Hey @youraerials - glad you like it!! So confession time, I'm one of those punks that still loves the chaos that is pure JS... thus rely on my much more sophisticated friends to fill in TS support. If you happen to know what it would take to solve this, I always welcome a PR (and love to be able to add folks to the README credits), or even code suggestion here in the issue. Otherwise, I'll definitely do what I can, but it may take just a bit longer till it's sorted... :) |
Hi @youraerials, Do you have a workaround here? Got the same issue. TIA |
So in short now that I'm able to get back to this issue... yes, definitely no issue exporting the interfaces - this will be going out with the next release in a day or so. While I'm on the subject, please verify this interface looks fine for export interface Request {
method?: string
params?: Obj
query?: Obj
url: string
arrayBuffer?(): Promise
blob?(): Promise
formData?(): Promise
json?(): Promise
text?(): Promise
} |
Should be exported as of |
Hi,
We LOVE itty! Would it be possible to export your types from your .d.ts file? We often do handlers in separate handler files and we'd love to be able to do things like this:
VSCode in particular gets confused with the type of the Request arg, and barking about req.query not existing in an example like the above.
Thanks!
The text was updated successfully, but these errors were encountered: