DenoDDeno
Powered by
jfbnJ
Denoβ€’13mo ago
jfbn

Types on transitive dependencies

I'm developing a simple slack application.

I'm importing a module like so:
import { App, ExpressReceiver } from 'npm:@slack/bolt'
import { App, ExpressReceiver } from 'npm:@slack/bolt'


Several properties of
App
App
are not correctly typed, and when stepping into the imported file (which is in the
Caches/deno/npm
Caches/deno/npm
directory) I do indeed see internal imports that do not have corresponding type declarations.

The package does actually have type declarations; I'm just assuming that since the dependency is internally trying to depend on another module like so:

import { WebClient, type WebClientOptions } from '@slack/web-api';
import { WebClient, type WebClientOptions } from '@slack/web-api';

(notice the missing
npm:
npm:
prefix)

it won't resolve it correctly..? Am I misunderstanding something? How can I have properly typed imports?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Transitive dependencies with node_modules
iceghostIiceghost / help
3y ago
Transitive dependency "cannot find module"
DavisDDavis / help
15mo ago
Transitive dependency module not found?
MTAEMMTAE / help
16mo ago
caching known dependencies on devcontainer startup
zimboZzimbo / help
2y ago