I have interface
interface MyInterface {
field1: boolean,
field2: MyType,
field3: MyType
}
and I want to create type that contains keys of this interface but only those which usage in interface gives value with type MyType. I know about existence of keyof but it will return ALL keys even field1 which I don't need. So how can I get type with only field2 and field3?