Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type path. #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add type path. #299

wants to merge 1 commit into from

Conversation

mushan0x0
Copy link

No description provided.

@tristanhcole
Copy link

tristanhcole commented Jul 16, 2020

Would this be causing type errors when using "@ant-design/icons" in a typescript component?

I've resolved for now by adding "skipLibCheck": true in our tsconfig.ts

@lukasluecke
Copy link

"files": [
    "dist",
    "lib",
    "es"
],
"types": "./lib/index.d.ts",

I am using this in my project right now, which massively improves the IDE behaviour (see https://youtrack.jetbrains.com/issue/WEB-44118 / https://youtrack.jetbrains.com/issue/WEB-44836).

This also matches what we have for the main antd package, the additional "files" array improves auto-import behaviour, which together with the "types" fixes almost all issues. The only remaining problem is now #304.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants