Suggestion: Add readonly references to objects & mark readonlyThis methods (pure functions) #42758
Open
5 tasks done
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Have a way to check readonly object references (including parameters, and this parameter). That allows to check than a function does not modifys an object.
π Motivating Example
π» Use Cases
Actually I'am ussing Readonly aproach, but it not contemplates all cases.
play example
I am trying with Object.seal and Proxyies .
The text was updated successfully, but these errors were encountered: