Accessing foo.constructor.staticProp gives me Property 'staticProp' does not exist on type 'Function', but it's valid JS -- what's the way to do this safely in typescript without ts-ignoring the complaint?
In this example I specifically know the type, but in a real case I won't always know the type, but I do know that it will have a type static variable