almighty-tool 0.0.116 → 0.0.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,16 +102,16 @@ export interface ValidateRuleItem extends Omit<OriginalValidateRuleItem, 'fields
102
102
  * - byte: 字节模式,中文=1, 英文/半角=0.5 (2个英文=1个中文)
103
103
  */
104
104
  lengthMode?: 'default' | 'byte';
105
+ /** 字段名称 */
106
+ name?: string;
107
+ /** 初始值 */
108
+ initialValue?: ValidateValue;
105
109
  }
106
110
  export type ValidateRule = ValidateRuleItem | ValidateRuleItem[];
107
111
  export type ValidateRules = Record<string, ValidateRule>;
108
112
  export interface ValidateOptionRule extends Omit<ValidateRuleItem, 'fields'> {
109
113
  /** 子规则 */
110
114
  fields?: Record<string, ValidateOptionRule | ValidateOptionRule[]>;
111
- /** 字段名称 */
112
- name?: string;
113
- /** 初始值 */
114
- initialValue?: ValidateValue;
115
115
  }
116
116
  export interface ParseRuleOptions {
117
117
  /** 是否解析转换器: 默认false */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "almighty-tool",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "description": "almighty-tool",
5
5
  "author": "happy",
6
6
  "private": false,