Skip to content
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

Is it possible to use npm DefinitelyTyped types directly instead of this repo? #219

Open
pjroth opened this issue Jan 6, 2023 · 1 comment
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@pjroth
Copy link

pjroth commented Jan 6, 2023

To have types in my code, is it not possible to do something like the following:

import {
    Context
} from "npm:@types/aws-lambda";

Sorry, this might be my ignorance about Deno and the differences in imports. I tried this code and it doesn't fail, although my IDE (IntelliJ) fails to click into the code source (ctrl-+ into a type doesn't go to the type definition), although code completion and inline type checking seems to work properly (incorrect properties colored red/etc).

Thank you!

@hayd hayd added help wanted Extra attention is needed question Further information is requested labels Jan 6, 2023
@hayd
Copy link
Contributor

hayd commented Feb 7, 2023

I think this should work too / might be better (get a more specific version) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants