Material-ui: TypeDefinition for new v1 beta

Created on 28 Oct 2017  路  10Comments  路  Source: mui-org/material-ui


Can I request for the TypeDefinition file for the latest version to be published at npm?

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.
question typescript

All 10 comments

It's already published on npm.

@oliviertassinari But is the one on npm based on the v1 material-ui? Because I think they still used the old API. For example the old API for raised button is <RaisedButton/> but the new API is <Button raised/>

@oliviertassinari Thanks for the reply, but the one on DefinitelyTyped repo is still using the old APIs, so do you have any idea how I can use the latest API?

@wongjiahau Have a look at our guide: https://material-ui-next.com/guides/typescript/. We do no longer use DefinitelyTyped.

@oliviertassinari Thanks for the help!

@oliviertassinari But it doesn't tell me how would I install the type definition files?

@wongjiahau You have a example project.

@oliviertassinari Sorry for bothering, but may I know why material-ui don't support DefinitelyTyped anymore?

So we can keep to types up to date as we merge PR. It should increase the quality of the definitions. Relying on DefinitelyTyped was the lazy approach before. Where hopefully the community keep it up to date after each release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

revskill10 picture revskill10  路  3Comments

rbozan picture rbozan  路  3Comments

ghost picture ghost  路  3Comments

mattmiddlesworth picture mattmiddlesworth  路  3Comments

ericraffin picture ericraffin  路  3Comments