Open ericdmoore opened 2 years ago
I suspect the deno repl has less or no type checking since I am able to import via the repl.
Deno 1.19.0
exit using ctrl+d or close()
> import { unified } from 'https://cdn.skypack.dev/unified@10.1.1?dts'; console.log(unified);
Download https://cdn.skypack.dev/error/buffer?from=vfile
[Function: processor] {
data: [Function: data],
Parser: undefined,
Compiler: undefined,
freeze: [Function: freeze],
attachers: [],
use: [Function: use],
parse: [Function: parse],
stringify: [Function: stringify],
run: [Function: run],
runSync: [Function: runSync],
process: [Function: process],
processSync: [Function: processSync]
}
Root Cause Suspicion
The types for this package are from the
Definitely Typed
's @types npm scope - which seems to be turning into anunknown
Thus when the URL rewrite patterns are applied - its not picking up the types as it should.To Reproduce
test.ts
run it
output