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.computed
参考下面的复现代码:
import { Context, Schema } from "koishi"; export const name = "test"; export interface Config {} export const Config: Schema<Config> = Schema.object({ foo: Schema.number().computed(), bar: Schema.number().description("bar").computed(), abc: Schema.number(), }).i18n({ "zh-CN": { foo: "测试", abc: "测试2", }, }); export function apply(ctx: Context, config: Config) {}
运行后得到:
可以发现只有 abc 选项正常显示了描述,foo 和 bar 都无法显示描述。
abc
foo
bar
补充说明: 当去除下方的 i18n 代码后,bar 配置项又能正常显示描述。
版本号:
"koishi": "^4.18.7", "@koishijs/plugin-console": "^5.30.3",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
参考下面的复现代码:
运行后得到:
可以发现只有
abc
选项正常显示了描述,foo
和bar
都无法显示描述。版本号:
The text was updated successfully, but these errors were encountered: