-
-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
I'm currently looking into using d.ts
files as a way to declare some types using imports from libraries without risking to import the libraries themselves.
Example:
// my.d.ts
import eslint from "eslint"
export type ESLint = typeof esIint;
Did you catch that? TypeScript didn't. The .d.ts
file above "passes" tsc
validation but typeof eslint
is spelled as typeof ESIINT
.
Use skipLibCheck: false
and it works:
Metadata
Metadata
Assignees
Labels
No labels