Typescript: declaration vs assertion If you "need" to use as any always know it's a code smell. What's more, I think the keyword as has been used too many times in a code I've seen. I think this is because Typescript developers I have worked with