diff --git a/README.md b/README.md index 054945f..3ad3a17 100644 --- a/README.md +++ b/README.md @@ -125,3 +125,20 @@ You can test only specific files by: $ npx check-dts **/*.tsx? $ npx check-dts **/*.ts !**/index.ts ``` + +## FAQ + +### It seems that check-dts ignores all d.ts-files. How can I fix this? + +Please make sure that your tsconfig.json doesn’t include `skipLibCheck: true`. +Becuase with this [option](https://www.typescriptlang.org/tsconfig#skipLibCheck) +all `d.ts`-files will be ignored. + +### Can I use check-dts as a simple validator for d.ts-files? + +Yes you can. But note if you have the typescript in your project +you can validate whether `d.ts`-files have some issues with the following command: + +```sh +$ npx tsc path/to/your/dts/files/**/*.d.ts --noEmit +```