In contributing to the DefinitelyTyped project, I recently introduced a new type definition for the hyphen library. The code can be found here.
Unfortunately, running the test script npm run test hyphen
resulted in the following error message:
C:\MyProjects\code\ts-d.ts\DefinitelyTyped>npm run test hyphen
...
Error: Unused file C:\MyProjects\code\ts-d.ts\DefinitelyTyped/types/hyphen/index.d.ts (used files: ["patterns/de-1996.d.ts","patterns/hu.d.ts","en-gb.d.ts","hyphen-tests.ts","common.ts","tsconfig.json","tslint.json"])
...
The error claims that index.d.ts
is not being used, even though it is referenced in my hyphen-tests.ts file.
I could simply add index.d.ts
to OTHER_FILES.txt
to bypass the issue, but this would not address the root problem. Any assistance with resolving this would be greatly appreciated. Thank you.