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 typescript error #4327

Closed
1 task
xuewangwang opened this issue Jul 6, 2021 · 2 comments
Closed
1 task

table typescript error #4327

xuewangwang opened this issue Jul 6, 2021 · 2 comments
Labels

Comments

@xuewangwang
Copy link

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

Version

2.2.1

Environment

vue3.1.4,ts4.3.4,antd2.2.1

Reproduction link

https://2x.antdv.com/components/table-cn

Steps to reproduce

TS type check failed while building a project。

error code:
export declare type ColumnProps = Partial<ExtractPropTypes> & {
slots?: {
title?: string;
filterIcon?: string;
filterDropdown?: string;
customRender?: string;
[key: string]: string;
};
};

error info:
node_modules/ant-design-vue/lib/table/interface.d.ts:131:9 - error TS2411: Property 'title' of type 'string | undefined' is not assignable to string index type 'string'.

title?: string;



### What is expected?
TS type check failed while building a project。

### What is actually happening?
TS type check failed while building a project。



        

<!-- generated by issue-helper. DO NOT REMOVE -->
@tangjinzhou
Copy link
Member

duplicate #4296

@github-actions
Copy link

github-actions bot commented Jul 7, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants