While this is related to a TypeScript definition file, I wanted to submit the issue here since a change may need to be made in this repo before the definition is updated (+1 for co-locating definitions in this repo).
As the comment in the Input definition file states, static is a keyword in both JS and TS and therefore cannot be used as a property in the InputProps interface. As a result, folks need to use the form-control-static class in their components. That's obviously not the end of the world, but I think it's safe to assume using a prop is preferable.
I wanted to see if there were any ideas about whether there'd be a way to support this by using a non-reserved word as a prop.
/cc @alihammad @mfal @danilobjr
While this is related to a TypeScript definition file, I wanted to submit the issue here since a change may need to be made in this repo before the definition is updated (+1 for co-locating definitions in this repo).
As the comment in the
Inputdefinition file states,staticis a keyword in both JS and TS and therefore cannot be used as a property in theInputPropsinterface. As a result, folks need to use theform-control-staticclass in their components. That's obviously not the end of the world, but I think it's safe to assume using a prop is preferable.I wanted to see if there were any ideas about whether there'd be a way to support this by using a non-reserved word as a prop.
/cc @alihammad @mfal @danilobjr