kockburn
kockburn3y ago

How to import Definitely Typed modules into Deno project?

I'm trying to include a definitely typed module into the deno project, so that the types are available globally. In this case, I'm trying to include @types/three and I've tried various ideas including:
/// <reference types='npm:@types/three' />
/// <reference types='npm:@types/three' />
But that doesn't seem to be working. I'm not trying to include the three.js codebase, only the types. Any idea on how to do this properly?
1 Reply
kockburn
kockburnOP3y ago
Stack Overflow
How to include Definitely Typed library to my deno project?
How do I use the deno's node compatibility mode with definitely typed modules? I tried this but that didn't seem to work as intended. /// <reference types='npm:@types/three' /> I simply want...

Did you find this page helpful?