Possible integration with type-fest ReadonlyDeep #350
Labels
Status: Triage
This issue needs to be triaged.
Type: Idea
Marks an idea, which might be accepted and implemented.
Hey there!
First of all, I would like to say that this plugin is super awesome and I'm hoping I can use it at work 馃
At work, we make usage of type-fest, in particular ReadonlyDeep utility type.
I would like to know if the maintainers would consider a possible integration (with
functional/prefer-readonly-type
, for instance), through a new option, that would make use of ReadonlyDeep utility for objects, arrays, etc instead of readonly on every property.Motivation
When using the
prefer-readonly-type
rule, the types declaration (mainly for objects with many properties) tend to become somewhat cluttered with all the readonly properties, e.g:Using ReadonlyDeep:
I know this would somewhat couple this plugin to type-fest and the implementation might be tricky but it would provide better ergonomics to use immutable types everywhere.
Is this something that makes sense for you to add or it's 100% out of scope?
Thank you for your time :)
The text was updated successfully, but these errors were encountered: