Tools like tsc can't see .d.ts files with the same name as a .ts file. Running tsc --noEmit --listFiles in the directory of typescript library, will not show clinet.d.ts, then type checking would fail with npx tsc --noEmit --strict.
My suggestion is client.types.d.ts.
But the best practice is removing .d.ts extension completely (e.g. client.types.ts) while its main purpose is to declare types for JavaScript file not TypeScript. Then use declare global scope or export all the types.
Tools like
tsccan't see.d.tsfiles with the same name as a.tsfile. Runningtsc --noEmit --listFilesin the directory of typescript library, will not showclinet.d.ts, then type checking would fail withnpx tsc --noEmit --strict.My suggestion is
client.types.d.ts.But the best practice is removing
.d.tsextension completely (e.g.client.types.ts) while its main purpose is to declare types for JavaScript file not TypeScript. Then usedeclare globalscope or export all the types.