Scenario:
In our monorepo, we have 2 workspaces: foo
and bar
.
foo
contains the following files:
src/file.ts
src/@types/baz.d.ts
The bar
workspace is importing @monorepo/foo/src/file
.
While type-checking works for the foo
workspace, it does not work for the bar
workspace.
Is there a way to instruct TypeScript to include the necessary *.d.ts files when importing from @monorepo/foo/*
?