Writable: { -readonly [K in keyof T]: T[K] }

This type allows modification of readonly attributes for class/interface This is useful to set properties like owner, parent where we can't do so in the constructors

See https://stackoverflow.com/questions/46634876/how-can-i-change-a-readonly-property-in-typescript

Type Parameters

  • T