Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table has lost type definitions #19252

Closed
1 task done
DennisBaekgaard opened this issue Oct 16, 2019 · 9 comments
Closed
1 task done

Table has lost type definitions #19252

DennisBaekgaard opened this issue Oct 16, 2019 · 9 comments
Assignees

Comments

@DennisBaekgaard
Copy link

DennisBaekgaard commented Oct 16, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

n/a

Steps to reproduce

Make any <Table> in typescript.

interface MyType {
}

const test = () => {

return (
    <Table<MyType>>
    </Table>
);

}

Aditionally static Column was removed from Table.d.ts

What is expected?

It should be possible to use Table with generic types as written in the documentation.

What is actually happening?

There are type compilation errors.

Environment Info
antd 3.24.0
React 16.10.2
System Windows
Browser Chrome
@JoeDevGeeeee
Copy link

ran into the same problem today. Worth noting my typescript version is 3.6.4

@eapearson
Copy link

Same here, reverting to 3.23.6.
It looks like it has been worked on, perhaps fixed, but is not released it yet:
7d32f99

@lLeahDizon
Copy link

me too, reverting to 3.23.6.

@yoyo837
Copy link
Contributor

yoyo837 commented Oct 17, 2019

ref: #18953

fixed with #19251

@ethanjiang7
Copy link

ethanjiang7 commented Oct 17, 2019

const { Column } = Table;
The "Column" does not exist in the type "typeof Table".
Seems to be a destructive change to the Table.d.ts file

@yoyo837
Copy link
Contributor

yoyo837 commented Oct 17, 2019

Release 3.24.1

@yoyo837
Copy link
Contributor

yoyo837 commented Oct 17, 2019

If this problem still occurs, please feel free to open a new issue.

@leshalv
Copy link
Contributor

leshalv commented Oct 22, 2019

如果仍然出现此问题,请随时打开一个新问题。
我升级到了最新版本,还是报错
image
我也并没有找到文档描述

@yoyo837
Copy link
Contributor

yoyo837 commented Oct 22, 2019

Ref: #19327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants