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

fix: 导出类型 #1356

Merged
merged 1 commit into from
Feb 9, 2022
Merged

fix: 导出类型 #1356

merged 1 commit into from
Feb 9, 2022

Conversation

ACERY1
Copy link
Member

@ACERY1 ACERY1 commented Feb 9, 2022

将 types.ts 里定义的类型都挂载到 Types 的命名空间下,之前的写法是没办法在上层消费 types.ts 里定义的类型。

现在可以通过如下的方式消费类型:

import type { Types } from '@antv/f2'

export interface PolarAxisProps extends Types.AxisTypes.Props {
   ... 
}

相关参考:https://tipsfordev.com/export-all-types-and-just-types-from-typescript-module

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

@zengyue zengyue merged commit f2e668f into master Feb 9, 2022
@zengyue zengyue deleted the ms/fix/globalTypes branch February 9, 2022 08:30
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 this pull request may close these issues.

None yet

2 participants