-
Notifications
You must be signed in to change notification settings - Fork 32
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
types are not detected in a deno project #145
Comments
Hello! We have forwarded the question to the developers. |
Hello! |
@kocherovv still not working for me. Here's how to reproduce:
|
the exact message:
|
Checking |
Hello! Thank you for waiting! You also need to add the following to tsconfig: After which, the compiler works, there should be no errors. |
The problem is that as I'm using Deno, I don't have a tsconfig nor does it do any good to have a global.d.ts file. |
I mean there is this: denoland/deno#2746 But why doesn't it work like other libraries ootb? Shouldn't that be the solution? |
Hello, @uriva! Install all necessary tools (npm is already installed):
Init project:
Add code:
index.ts file:
And now I have "Hello world" example with imported library working:
Shell 2:
I used this import:
not
because of example code in Readme. |
@AknurKh I know it's possible to use this in deno, the problem I have is:
|
@uriva Unfortunately, we can't help you with this issue, because it doesn't depend on us. This library correctly imports to Deno project and there are no errors during the execution of it. Please look up to the libraries import process of your VS Code. |
@prostraction you are not answering the second question - is it possible to import the API types to use in my code? e.g. (this has nothing to do with vscode) |
@uriva it's not possible to import the API types using this library. Code like this:
causes:
The default import, which you can find at readme, should work:
|
Okay, so I propose a feature request to expose the API types. They are essential for writing typescript code that uses this library, like in the example I shared above. |
The text was updated successfully, but these errors were encountered: