Skip to content

Missing completion after 'asserts' in return typeΒ #42180

Closed
@ajafff

Description

@ajafff

Bug Report

πŸ”Ž Search Terms

completion list, assert, asserts

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, since the feature was introduced in 3.7

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

declare function assert(v: any): asserts /* | */

πŸ™ Actual behavior

Typing v after asserts brings up the completion list with void at the first position. I'm used to accept the first completion, so I end up with an invalid asserts predicate.

πŸ™‚ Expected behavior

List all parameter names of the function and/or this

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions