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
required()
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('常量设置')
问题:无法展开。
把 aaa: Schema.union(['bbb', 'ccc']).required() 删了就正常了。
aaa: Schema.union(['bbb', 'ccc']).required()
The text was updated successfully, but these errors were encountered:
5383e68
感谢反馈。Koishi 将在近期更新以修复此问题。
Sorry, something went wrong.
好耶!
No branches or pull requests
问题:无法展开。
把
aaa: Schema.union(['bbb', 'ccc']).required()
删了就正常了。The text was updated successfully, but these errors were encountered: