deno-lambda icon indicating copy to clipboard operation
deno-lambda copied to clipboard

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

Open pjroth opened this issue 1 year ago • 1 comments

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!

pjroth avatar Jan 06 '23 15:01 pjroth