Open
Description
The externs guide mentions type annotations like ^js/Foo.Bar
.
Although it doesn't mention it, it's also possible to simply use ^js
. (In fact anything like ^js/asdf
will work, too.)
Should ^js
be the default recommendation? Oftentimes you don't know the correct type of JS objects you're getting back from an NPM lib. Even if you do, using a generic annotation seems to have the same effect, so not sure there are any downsides to simply using ^js
everywhere.