We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am glad to be able to use this small tool, but I encountered some problems during use
type CustomFormchildrens = Array<Input> interface CustomFormChildren<T extends string, V = any> { /** 组件类型 */ type: T /** 初始化值 */ initialValue?: V /** FormItem配置 */ formItem: any /** 格式化数据 在调用 validate 方法通过后调用 */ formatter?: (v?: V) => any } /** Form 展示组件 统一的类型 */ type CustomFormChildrenMixinType<T> = Partial<T> & { class?: string } /** 输入框 */ interface Input extends CustomFormChildren<'input', string> {}
1
System: OS: Windows 10 10.0.19045 CPU: (8) x64 Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz Memory: 5.29 GB / 15.86 GB Binaries: Node: 21.6.2 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD pnpm: 9.4.0 - C:\Program Files\nodejs\pnpm.CMD Browsers: Edge: Chromium (125.0.2535.92) Internet Explorer: 11.0.19041.3636
pnpm
The text was updated successfully, but these errors were encountered:
Consider using $((): YouType => ({})) instead of generic?
$((): YouType => ({}))
Sorry, something went wrong.
考虑使用而不是通用?$((): YouType => ({}))
Thank you, the problem has been resolved based on your answer (^▽^)
No branches or pull requests
Describe the bug
I am glad to be able to use this small tool, but I encountered some problems during use
Reproduction
1
System Info
Used Package Manager
pnpm
Validations
Contributions
The text was updated successfully, but these errors were encountered: