Commit 121159aa authored by nanahira's avatar nanahira

readmefix

parent 263bf06e
Pipeline #6127 canceled with stages
in 50 seconds
......@@ -45,11 +45,11 @@ export class Config {
@ObjectSchema(B)
anotherB: B;
// Dict
// 字典
@DefineSchema({ type: B, dict: true })
biDict: Record<string, B>;
// Dict 和字典组合会让字典在内而数组在外。此外 ObjectSchema 后面也可以指定属性。
// 数组和字典组合会让字典在内而数组在外。此外 ObjectSchema 后面也可以指定属性。
@ObjectSchema(B, { dict: true, array: true })
biDictArr: Record<string, B>[];
}
......
{
"name": "koishi-utils-schemagen",
"version": "1.0.0",
"version": "1.0.1",
"description": "在 Koishi.js 中,使用类装饰器定义 Schema",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment