Given the following class:
class Example {
get name () {
return 'thomas'
}
age () {
return 30
}
}
I can get the keys as a type:
type ExampleKeys = keyof Example
However this returns all of the keys.
Is it possible to only get getters? Or Only get Methods? I'd suppose if you can get one you can exclude to get the other.