What does typescript do in element-ui?

clipboard.png
clipboard.png
1. The first picture shows that the element-ui package is quoted from the second picture of the index.d.ts file.
Why is this?
2. There is also a ts file I built myself, which only declares a Boolean variable. The error is reported when it is introduced into the project, but why not report the error when the ts file is also cited by element-UI? What on earth are these ts files written in
3.element-ui for?


you'll know after reading this PR .
https://github.com/ElemeFE/el...

types is for people who use typescript . If you need to build it yourself, for example, use webpack .


clipboard.png
tselement-uielement-ui.common.js


.d.tstypescriptjs

.d.tsideideide.d.ts

.d.ts

ts.d.tsjs.d.ts.d.ts

ide.d.ts

.d.ts:

CatmewCat

Catidemew

.d.ts

Menu