ComponentDriven / csf

Component Story Format is an open standard for UI component examples based on JavaScript ES6 modules.
https://www.componentdriven.org/
MIT License
818 stars 47 forks source link

Types: use readonly array for options. #86

Closed pcorpet closed 4 months ago

pcorpet commented 4 months ago

By default arrays are mutable in Typescript, however when defining an InputType, we won't modify the initial value.

This allows to define some const values for options.

pcorpet commented 4 months ago

Dupe of #85 , closing.