Open iccicci opened 2 years ago
I'm mid installing tsd
right now but need this feature so might have to uninstall...
Hi @hisuwh ,
I can suggest you the solution I adopted here: https://github.com/iccicci/sedentary/blob/master/test/98types.ts
Hope this helps
Related to #132.
TypeScript 4.7 supports export maps, so a type definition no longer has to exist at index.d.ts
at all.
See #196 for discussion on this.
Same here. Whenever I run npx tsd --files src/**/*.test-d.ts
, to run the test files I won't include in the dist
folder, I get:
The type definition `./dist/index.d.ts` does not exist at `[...]/dist/index.d.ts`. Is the path correct? Create one and try again.
One workaround is to just create an empty file in dist/index.d.ts
:
if [ ! -d dist ]; then mkdir dist; fi && touch dist/index.d.ts && tsd --files src/**/*.test-d.ts
Hi all,
my package is written in TypeScript and I create the
index.d.ts
file only before publishing the package. It seems that to runtsd
I'm forced to runtsc
at every change.Is there a way to test types in
index.ts
file directly without the need to runtsc
beforetsd
?Thank you