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

🧐[问题] 请问一下如何给antd-style 扩展 CustomToken 对象类型定义 #16

Closed
qc-z opened this issue Feb 16, 2023 · 2 comments

Comments

@qc-z
Copy link

qc-z commented Feb 16, 2023

🧐 问题描述

按照作者的文档写了如下代码

💻 示例代码

image
报错如下
image

🚑 其他信息

我在每个组件里面都这样子定义,请问这是错误的写法吗

@arvinxx
Copy link
Collaborator

arvinxx commented Feb 16, 2023

不能用 type 需要用 interface。

我在每个组件里面都这样子定义,请问这是错误的写法吗

这个只需全局定义一次不需要在每个组件中重复声明。

@arvinxx
Copy link
Collaborator

arvinxx commented Feb 16, 2023

已在文档中补充,commit

@arvinxx arvinxx closed this as completed Feb 16, 2023
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

2 participants