Skip to content

Use another name instead of client.d.ts beacuse it is inteded as autogenerated from client.ts while it is not. #5

Description

@MohsenNz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions