I can't seem to get self-referencing to work with tsd. Here's the basics of my setup.
// my-test.test-d.ts
import { expectType } from "tsd";
import { foo } from "my-package"; // <-- tsd cannot resolve either of these imports,
import { bar } from "my-package/bar"; // <-- but typescript itself can.
// ...
// tsconfig.json
{
"compilerOptions": {
"strict": true,
"customConditions": ["development"] // If tsd is to run on the compiled .d.ts files, then tsd probably need to be configure NOT to use this (all other tools do need it)
}
}
I can't seem to get self-referencing to work with tsd. Here's the basics of my setup.