Commit b2f6f70b authored by nanahira's avatar nanahira

use a compatitable way

parent e7a02c35
...@@ -125,7 +125,7 @@ function schemasFromDict<T>(dict: SchemaOptionsDict<T>) { ...@@ -125,7 +125,7 @@ function schemasFromDict<T>(dict: SchemaOptionsDict<T>) {
resolvePropertySchemaFromOptions(schemaOptions), resolvePropertySchemaFromOptions(schemaOptions),
); );
} else { } else {
schema.set(_key, schemaDict[_key]); schema.dict[_key] = schemaDict[key] as Schema<T[keyof T]>;
} }
} }
return schema; return schema;
......
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