Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Use typedef for common types to make docs more concise #8705

Open
@peterflynn

Description

@peterflynn

For example:

  • @param {!{line:number, ch:number}} foo -->
    @param {!TextPos} foo
  • @param {!{from:!{line:number, ch:number}, to:!{line:number, ch:number}} foo -->
    @param {!TextRange} foo

Not sure if there are any other types common enough to warrant this treatment, but those two alone would be a huge bang for the buck.

"Providers" in QuickOpen, Code hints, & CodeInspection might be other good candidates.

Need to:

  • Verify that this work ok in apify
  • Decide in what module to declare typedefs that are this general & widely-used

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions