mol_data_all 1.1.1274 → 1.1.1275

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/node.d.ts +13 -13
  2. package/package.json +1 -1
  3. package/web.d.ts +13 -13
package/node.d.ts CHANGED
@@ -56,7 +56,7 @@ declare namespace $ {
56
56
  declare namespace $ {
57
57
  function $mol_data_array<Sub extends $mol_data_value>(sub: Sub): ((val: readonly Parameters<Sub>[0][]) => readonly ReturnType<Sub>[]) & {
58
58
  config: Sub;
59
- Value: readonly ReturnType<Sub>[];
59
+ Value: ReturnType<Value>;
60
60
  };
61
61
  }
62
62
 
@@ -72,7 +72,7 @@ declare namespace $ {
72
72
  declare namespace $ {
73
73
  function $mol_data_const<Val>(ref: Val): ((val: Val) => Val) & {
74
74
  config: Val;
75
- Value: Val;
75
+ Value: ReturnType<Value>;
76
76
  };
77
77
  }
78
78
 
@@ -83,14 +83,14 @@ declare namespace $ {
83
83
  declare namespace $ {
84
84
  function $mol_data_pattern(pattern: RegExp): ((val: string) => string) & {
85
85
  config: RegExp;
86
- Value: string;
86
+ Value: ReturnType<Value>;
87
87
  };
88
88
  }
89
89
 
90
90
  declare namespace $ {
91
91
  let $mol_data_email: ((val: string) => string) & {
92
92
  config: RegExp;
93
- Value: string;
93
+ Value: ReturnType<Value>;
94
94
  };
95
95
  }
96
96
 
@@ -100,14 +100,14 @@ declare namespace $ {
100
100
  name: string;
101
101
  dict: Dict;
102
102
  };
103
- Value: Dict[keyof Dict];
103
+ Value: ReturnType<Value>;
104
104
  };
105
105
  }
106
106
 
107
107
  declare namespace $ {
108
108
  function $mol_data_instance<Instance extends new (...args: any[]) => any>(Instance: Instance): ((val: InstanceType<Instance>) => InstanceType<Instance>) & {
109
109
  config: Instance;
110
- Value: InstanceType<Instance>;
110
+ Value: ReturnType<Value>;
111
111
  };
112
112
  }
113
113
 
@@ -122,7 +122,7 @@ declare namespace $ {
122
122
  declare namespace $ {
123
123
  function $mol_data_range<Value>(from: Value, to: Value): ((val: Value) => Value) & {
124
124
  config: Value[];
125
- Value: Value;
125
+ Value: ReturnType<Value_1>;
126
126
  };
127
127
  }
128
128
 
@@ -140,7 +140,7 @@ declare namespace $ {
140
140
  declare namespace $ {
141
141
  function $mol_data_nullable<Sub extends $mol_data_value>(sub: Sub): ((val: Parameters<Sub>[0] | null) => ReturnType<Sub> | null) & {
142
142
  config: Sub;
143
- Value: ReturnType<Sub> | null;
143
+ Value: ReturnType<Value>;
144
144
  };
145
145
  }
146
146
 
@@ -150,7 +150,7 @@ declare namespace $ {
150
150
  sub: Sub;
151
151
  fallback: Fallback | undefined;
152
152
  };
153
- Value: ReturnType<Sub> | (Fallback extends undefined ? undefined : ReturnType<Extract<Fallback, () => any>>);
153
+ Value: ReturnType<Value>;
154
154
  };
155
155
  }
156
156
 
@@ -182,21 +182,21 @@ declare namespace $ {
182
182
  declare namespace $ {
183
183
  function $mol_data_record<Sub extends Record<string, $mol_data_value>>(sub: Sub): ((val: $mol_type_merge<$mol_type_override<Partial<{ [key in keyof Sub]: Parameters<Sub[key]>[0]; }>, Pick<{ [key in keyof Sub]: Parameters<Sub[key]>[0]; }, { [Field in keyof { [key in keyof Sub]: Parameters<Sub[key]>[0]; }]: undefined extends { [key in keyof Sub]: Parameters<Sub[key]>[0]; }[Field] ? never : Field; }[keyof Sub]>>>) => Readonly<$mol_type_merge<$mol_type_override<Partial<{ [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }>, Pick<{ [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }, { [Field_1 in keyof { [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }]: undefined extends { [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }[Field_1] ? never : Field_1; }[keyof Sub]>>>>) & {
184
184
  config: Sub;
185
- Value: Readonly<$mol_type_merge<$mol_type_override<Partial<{ [key in keyof Sub]: ReturnType<Sub[key]>; }>, Pick<{ [key in keyof Sub]: ReturnType<Sub[key]>; }, { [Field in keyof { [key in keyof Sub]: ReturnType<Sub[key]>; }]: undefined extends { [key in keyof Sub]: ReturnType<Sub[key]>; }[Field] ? never : Field; }[keyof Sub]>>>>;
185
+ Value: ReturnType<Value>;
186
186
  };
187
187
  }
188
188
 
189
189
  declare namespace $ {
190
190
  function $mol_data_dict<Sub extends $mol_data_value>(sub: Sub): ((val: Readonly<Record<string, ReturnType<Sub>>>) => Readonly<Record<string, ReturnType<Sub>>>) & {
191
191
  config: Sub;
192
- Value: Readonly<Record<string, ReturnType<Sub>>>;
192
+ Value: ReturnType<Value>;
193
193
  };
194
194
  }
195
195
 
196
196
  declare namespace $ {
197
197
  function $mol_data_variant<Sub extends $mol_data_value[]>(...sub: Sub): ((val: Parameters<Sub[number]>[0]) => ReturnType<Sub[number]>) & {
198
198
  config: Sub;
199
- Value: ReturnType<Sub[number]>;
199
+ Value: ReturnType<Value>;
200
200
  };
201
201
  }
202
202
 
@@ -235,7 +235,7 @@ declare namespace $ {
235
235
  config: {
236
236
  funcs: Funcs & Guard<Funcs>;
237
237
  };
238
- Value: $mol_type_result<$mol_type_foot<Funcs>>;
238
+ Value: ReturnType<Value>;
239
239
  };
240
240
  export {};
241
241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_data_all",
3
- "version": "1.1.1274",
3
+ "version": "1.1.1275",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
package/web.d.ts CHANGED
@@ -56,7 +56,7 @@ declare namespace $ {
56
56
  declare namespace $ {
57
57
  function $mol_data_array<Sub extends $mol_data_value>(sub: Sub): ((val: readonly Parameters<Sub>[0][]) => readonly ReturnType<Sub>[]) & {
58
58
  config: Sub;
59
- Value: readonly ReturnType<Sub>[];
59
+ Value: ReturnType<Value>;
60
60
  };
61
61
  }
62
62
 
@@ -72,7 +72,7 @@ declare namespace $ {
72
72
  declare namespace $ {
73
73
  function $mol_data_const<Val>(ref: Val): ((val: Val) => Val) & {
74
74
  config: Val;
75
- Value: Val;
75
+ Value: ReturnType<Value>;
76
76
  };
77
77
  }
78
78
 
@@ -83,14 +83,14 @@ declare namespace $ {
83
83
  declare namespace $ {
84
84
  function $mol_data_pattern(pattern: RegExp): ((val: string) => string) & {
85
85
  config: RegExp;
86
- Value: string;
86
+ Value: ReturnType<Value>;
87
87
  };
88
88
  }
89
89
 
90
90
  declare namespace $ {
91
91
  let $mol_data_email: ((val: string) => string) & {
92
92
  config: RegExp;
93
- Value: string;
93
+ Value: ReturnType<Value>;
94
94
  };
95
95
  }
96
96
 
@@ -100,14 +100,14 @@ declare namespace $ {
100
100
  name: string;
101
101
  dict: Dict;
102
102
  };
103
- Value: Dict[keyof Dict];
103
+ Value: ReturnType<Value>;
104
104
  };
105
105
  }
106
106
 
107
107
  declare namespace $ {
108
108
  function $mol_data_instance<Instance extends new (...args: any[]) => any>(Instance: Instance): ((val: InstanceType<Instance>) => InstanceType<Instance>) & {
109
109
  config: Instance;
110
- Value: InstanceType<Instance>;
110
+ Value: ReturnType<Value>;
111
111
  };
112
112
  }
113
113
 
@@ -122,7 +122,7 @@ declare namespace $ {
122
122
  declare namespace $ {
123
123
  function $mol_data_range<Value>(from: Value, to: Value): ((val: Value) => Value) & {
124
124
  config: Value[];
125
- Value: Value;
125
+ Value: ReturnType<Value_1>;
126
126
  };
127
127
  }
128
128
 
@@ -140,7 +140,7 @@ declare namespace $ {
140
140
  declare namespace $ {
141
141
  function $mol_data_nullable<Sub extends $mol_data_value>(sub: Sub): ((val: Parameters<Sub>[0] | null) => ReturnType<Sub> | null) & {
142
142
  config: Sub;
143
- Value: ReturnType<Sub> | null;
143
+ Value: ReturnType<Value>;
144
144
  };
145
145
  }
146
146
 
@@ -150,7 +150,7 @@ declare namespace $ {
150
150
  sub: Sub;
151
151
  fallback: Fallback | undefined;
152
152
  };
153
- Value: ReturnType<Sub> | (Fallback extends undefined ? undefined : ReturnType<Extract<Fallback, () => any>>);
153
+ Value: ReturnType<Value>;
154
154
  };
155
155
  }
156
156
 
@@ -182,21 +182,21 @@ declare namespace $ {
182
182
  declare namespace $ {
183
183
  function $mol_data_record<Sub extends Record<string, $mol_data_value>>(sub: Sub): ((val: $mol_type_merge<$mol_type_override<Partial<{ [key in keyof Sub]: Parameters<Sub[key]>[0]; }>, Pick<{ [key in keyof Sub]: Parameters<Sub[key]>[0]; }, { [Field in keyof { [key in keyof Sub]: Parameters<Sub[key]>[0]; }]: undefined extends { [key in keyof Sub]: Parameters<Sub[key]>[0]; }[Field] ? never : Field; }[keyof Sub]>>>) => Readonly<$mol_type_merge<$mol_type_override<Partial<{ [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }>, Pick<{ [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }, { [Field_1 in keyof { [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }]: undefined extends { [key_1 in keyof Sub]: ReturnType<Sub[key_1]>; }[Field_1] ? never : Field_1; }[keyof Sub]>>>>) & {
184
184
  config: Sub;
185
- Value: Readonly<$mol_type_merge<$mol_type_override<Partial<{ [key in keyof Sub]: ReturnType<Sub[key]>; }>, Pick<{ [key in keyof Sub]: ReturnType<Sub[key]>; }, { [Field in keyof { [key in keyof Sub]: ReturnType<Sub[key]>; }]: undefined extends { [key in keyof Sub]: ReturnType<Sub[key]>; }[Field] ? never : Field; }[keyof Sub]>>>>;
185
+ Value: ReturnType<Value>;
186
186
  };
187
187
  }
188
188
 
189
189
  declare namespace $ {
190
190
  function $mol_data_dict<Sub extends $mol_data_value>(sub: Sub): ((val: Readonly<Record<string, ReturnType<Sub>>>) => Readonly<Record<string, ReturnType<Sub>>>) & {
191
191
  config: Sub;
192
- Value: Readonly<Record<string, ReturnType<Sub>>>;
192
+ Value: ReturnType<Value>;
193
193
  };
194
194
  }
195
195
 
196
196
  declare namespace $ {
197
197
  function $mol_data_variant<Sub extends $mol_data_value[]>(...sub: Sub): ((val: Parameters<Sub[number]>[0]) => ReturnType<Sub[number]>) & {
198
198
  config: Sub;
199
- Value: ReturnType<Sub[number]>;
199
+ Value: ReturnType<Value>;
200
200
  };
201
201
  }
202
202
 
@@ -235,7 +235,7 @@ declare namespace $ {
235
235
  config: {
236
236
  funcs: Funcs & Guard<Funcs>;
237
237
  };
238
- Value: $mol_type_result<$mol_type_foot<Funcs>>;
238
+ Value: ReturnType<Value>;
239
239
  };
240
240
  export {};
241
241
  }