Skip to content

Mention ^js annotation in Externs Guide #260

Open
@pesterhazy

Description

@pesterhazy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions