The Dream:
interface foo {
buzz: string;
das: number;
bar: string[];
}
function findAllProperties(randomObject: any): string[] {
// someone more versed in TS and smarter than me?
}
This would be used for the first step in an 'assert all' function for properties on a given type, so when I pass a prop into a component I could assert all for not being null | undefined. I can't find any way to do this, and the others are in the belief its impossible.