I am looking for a way to type a class or interfac...
# general-advice
p
I am looking for a way to type a class or interface method given a function type. The typescript equivalent would just be
Copy code
type MyFunctionType = () => void

interface MyInterface {
  foo: MyFunctionType
}