Skip to content

Do not skipLibCheck #15

@fregante

Description

@fregante

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:

Screen Shot 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions