You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a real problem or use-case?
Yes. Often times, we create Readonly or DeepReadonly objects in code. However, during tests one might use test factories that return concrete implementations of those objects. After that, we might want to modify a single property, add additional properties or remove properties from those objects for testing purposes. At this point we are forced to cast objects to "any", which isn't nice when using strict projects.
Describe a solution including usage in code example
I have been using this on my projects successfully. But I have been copy pasting them everywhere. Might as well ask for it to be integrated in utility-types.
Is your feature request related to a real problem or use-case?
Yes. Often times, we create
Readonly
orDeepReadonly
objects in code. However, during tests one might use test factories that return concrete implementations of those objects. After that, we might want to modify a single property, add additional properties or remove properties from those objects for testing purposes. At this point we are forced to cast objects to "any", which isn't nice when using strict projects.Describe a solution including usage in code example
I have been using this on my projects successfully. But I have been copy pasting them everywhere. Might as well ask for it to be integrated in utility-types.
Who does this impact? Who is this for?
TypeScript users; Or at least myself.
The text was updated successfully, but these errors were encountered: