fannheyward / coc-deno

Deno extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No code completion for imported npm packages

npearson72 opened this issue · comments

I'm trying the following:

import express, { Express, Request, Response } from 'npm:express';

But I'm not getting any code completion for these.

Is this just not supported yet, or is there a trick to get it working?

Please disregard. I realize now the type declarations must be added like so:

// @deno-types="npm:@types/express@4"
import express, { Express } from 'npm:express@4';