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
Schema.dict()
问题:点击“添加项目”后,最底下会额外多出一个选择框。
复现:
export interface Config { } export const Config: Schema<Config> = Schema.object({ constants: Schema.dict(Schema.intersect([ Schema.object({ type: Schema.union(['foo', 'bar']).required(), }).description('基础配置'), Schema.union([ Schema.object({ type: Schema.const('foo').required(), value: Schema.number().default(114514), aaa: Schema.union(['bbb', 'ccc']).required() }).description('特殊配置 1'), Schema.object({ type: Schema.const('bar').required(), text: Schema.string(), aaa: Schema.union(['bbb', 'ccc']).required() }).description('特殊配置 2'), ]), ])).description('常量列表') }).description('常量设置')
The text was updated successfully, but these errors were encountered:
修一个 bug 又来一个 🤣
Sorry, something went wrong.
哈哈哈哈~
761e107
No branches or pull requests
问题:点击“添加项目”后,最底下会额外多出一个选择框。
复现:
The text was updated successfully, but these errors were encountered: