I need to type foo with MyType[\'foo\'].
foo
MyType[\'foo\']
type MyType { foo: () => void } const Comp: R