DEV Community

Discussion on: Typescript tip: Don't use "naked any", create an "any interface" instead.

Collapse
 
michaeljota profile image
Michael De Abreu • Edited

This is actually quite helpful, and in deed there are only a few moments in development that you honestly don't know what is the shape of the object you are going to use. Still, a named object is better than anything.

Update: unknown type is landing in TS 3. So, we shouldn't need awkward anymore