Given a class, containing both properties and methods, I\'d like to derive a type that just contains its properties.
For example, if I define a class as follow:
While reading this issue, I found someone posting this succinct type
type ExcludeMethods = Pick any ? never : K }[keyof T]>;
Note that this type does not remove getters and setters.