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

[Field]优化 Field 类型注释 #4991

Open
xxih opened this issue Nov 28, 2024 · 2 comments
Open

[Field]优化 Field 类型注释 #4991

xxih opened this issue Nov 28, 2024 · 2 comments

Comments

@xxih
Copy link

xxih commented Nov 28, 2024

Component

Field

Feature Description

  const field = Field.useField<{
    schemaName: string;
    tableName: string;
    comment: string;
    owner: string;
  }>({
    autoUnmount: false,
    values: {},
  });

希望支持这样的泛型写法,能使得 field 使用过程中有更好的类型提示。

Copy link

这是您为 Fusion/Next 提的第一个 issue,感谢您对 Fusion 的信任和支持,我们会尽快进行处理。

@xxih
Copy link
Author

xxih commented Nov 28, 2024

我在个人项目中对 Field 做了一层封装,重写了类型注释。可提供更好的类型提示,供参考交流

demo.txt
type.txt
image

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

1 participant