Skip to content

ts support #4

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
gadfly3173 opened this issue Mar 1, 2022 · 1 comment · Fixed by #5
Closed

ts support #4

gadfly3173 opened this issue Mar 1, 2022 · 1 comment · Fixed by #5

Comments

@gadfly3173
Copy link
Contributor

打包结果未包含.d.ts类型定义文件,是否考虑支持?

@viewweiwu
Copy link
Owner

暂无,也没多少东西,可直接复制下面这段类型到你的代码。

export interface Tab {
  /** 显示名称 */
  label: string
  /** 唯一 key */
  key: string
  /** 图标 */
  favico?: unknown
  /** 是否可关闭 */
  closable?: boolean
  /** 是否可被交换 */
  swappable?: boolean
  /** 是否可拖拽 */
  dragable?: boolean
}

viewweiwu added a commit that referenced this issue Mar 1, 2022
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

Successfully merging a pull request may close this issue.

2 participants