8 ms·
I'm not sure exactly what you mean by "not valid" but that example is absolutely valid typescript, and will compile perfectly fine.
by migstopheles 8y ago
I'm not sure exactly what you mean by "not valid" but that example is absolutely valid typescript, and will compile perfectly fine.
- AgentME 8y agoBy default, you'll get "error TS2339: Property 'asdf' does not exist on type '{}'.". Yes, the error can be disabled.