Closed lizraeli closed 3 years ago
Since users of Formsort can define custom environments, we allow passing any string for the formSortEnv prop in react-embed. This PR updates the prop, and defines a custom type to preserve the auto-complete for the default environments.
formSortEnv
Intellisense for default environments:
Other values are allowed:
Cannot access custom environments in react embed library for formsortEnv (types are overconstrained)
Since users of Formsort can define custom environments, we allow passing any string for the
formSortEnv
prop in react-embed. This PR updates the prop, and defines a custom type to preserve the auto-complete for the default environments.Screenshots
Intellisense for default environments:
Other values are allowed: