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
No way to import types with Deno #477
Comments
Looks like the deno docs were just throwing me off. You can import types like so:
|
Glad you figured this out!
OOC, which deno docs are you referring to? |
@rattrayalex these docs that I assume are autogenerated via static analysis by deno? Trying to assign the type to a |
Ah, I see, thank you for sharing that – I wasn't aware Deno generated docs like that. I'll see if there's something to be done about that. EDIT: I've filed denoland/website_feedback#53 |
oh, I also opened a ticket but on the I'm actually not sure this is actually the related repo though... |
Ah, yours is more likely to be the correct location, well done. Added a pointer. |
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
Based on the docs, this library exposes the Request/Response types via the "default" namespace.
However, if I try to use the imports in my code, I get an error:
Identifier expected.
I'm not 100% but it seems like maybe this is a reserved keyword that Deno doesn't support having as a namespace?
To Reproduce
Code Sandbox Link (you might have to start typing to see error)
Code snippets
No response
OS
osx
Node version
deno 1.38.0
Library version
v4.16.1
The text was updated successfully, but these errors were encountered: