Skip to content

Show signature help for contextual callback #25265

Closed
@ackvf

Description

@ackvf

TypeScript Version: 2.9.2 and 3.0.0-dev.20180626

Search Terms:
jsx props intellisense

Code

import Table from 'antd/lib/table'
//...
render() {
  return (
    <Table.Column render={(){/*<- cursor between braces*/}}/>
  )
}

Expected behavior:

Expected is that intellisense for the inserted brace of an arrow gives correct param types.

node_modules\antd\lib\table\interface.d.ts
render?: (text: any, record: T, index: number) => React.ReactNode;

image

Actual behavior:

image

Playground Link:

https://github.com/ackvf/typescript-repro/tree/render-prop

Related Issues:
#25266

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: Signature HelpInformation in editor tooltips when invoking a function callSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions