Skip to content

TS Error appears in columns defining ref<TableColumnsType> type: the type instantiation is too deep, and may be infinite" #5044

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

Closed
1 task done
ly-sniper opened this issue Dec 16, 2021 · 1 comment
Labels

Comments

@ly-sniper
Copy link

ly-sniper commented Dec 16, 2021

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

Version

3.0.0-alpha.15

Environment

win10, Chrome96.0.4664.45, TS4.5.3, vite2.7.1

Reproduction link

https://no-repro.com

Steps to reproduce

1:const columns = ref<TableColumnsType>([])
2:<a-table :columns="columns"></a-table>

template中a-table出现ts error: "类型实例化过深,且可能无限"

What is expected?

可以给a-table传入**ref<TableColumnsType>**类型的columns

What is actually happening?

template中a-table出现ts error:"类型实例化过深,且可能无限"

@github-actions github-actions bot changed the title 定义ref<TableColumnsType>类型的columns出现TS Error:类型实例化过深,且可能无限" TS Error appears in columns defining ref<TableColumnsType> type: the type instantiation is too deep, and may be infinite" Dec 16, 2021
@github-actions
Copy link

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 Dec 17, 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

1 participant