I need to exclude all functions from an interface
interface Person {
firstname: string;
lastname: string;
walk: () => void;
speak: (phrase: string) => Promise<void>
}
type PersonWithoutFunctions = RemoveFunctions<Person>
/* desired outcome:
PersonWithoutFunctions {
firstname: string;
lastname: string;
}
*/