@eslint-react/shared 1.24.0-next.11 → 1.24.0-next.12

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.
package/dist/index.d.mts CHANGED
@@ -70,7 +70,7 @@ type SchemaWithPipe<TPipe extends [
70
70
  *
71
71
  * @internal
72
72
  */
73
- readonly '~standard': StandardSchemaProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
73
+ readonly '~standard': StandardProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
74
74
  /**
75
75
  * Parses unknown input values.
76
76
  *
@@ -114,7 +114,7 @@ type SchemaWithPipeAsync<TPipe extends [
114
114
  *
115
115
  * @internal
116
116
  */
117
- readonly '~standard': StandardSchemaProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
117
+ readonly '~standard': StandardProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
118
118
  /**
119
119
  * Parses unknown input values.
120
120
  *
@@ -139,7 +139,7 @@ type SchemaWithPipeAsync<TPipe extends [
139
139
  };
140
140
 
141
141
  /**
142
- * Base metadata type.
142
+ * Base metadata interface.
143
143
  */
144
144
  interface BaseMetadata<TInput> {
145
145
  /**
@@ -167,7 +167,7 @@ interface BaseMetadata<TInput> {
167
167
  }
168
168
 
169
169
  /**
170
- * Unknown dataset type.
170
+ * Unknown dataset interface.
171
171
  */
172
172
  interface UnknownDataset {
173
173
  /**
@@ -184,7 +184,7 @@ interface UnknownDataset {
184
184
  issues?: undefined;
185
185
  }
186
186
  /**
187
- * Success dataset type.
187
+ * Success dataset interface.
188
188
  */
189
189
  interface SuccessDataset<TValue> {
190
190
  /**
@@ -201,7 +201,7 @@ interface SuccessDataset<TValue> {
201
201
  issues?: undefined;
202
202
  }
203
203
  /**
204
- * Partial dataset type.
204
+ * Partial dataset interface.
205
205
  */
206
206
  interface PartialDataset<TValue, TIssue extends BaseIssue<unknown>> {
207
207
  /**
@@ -218,7 +218,7 @@ interface PartialDataset<TValue, TIssue extends BaseIssue<unknown>> {
218
218
  issues: [TIssue, ...TIssue[]];
219
219
  }
220
220
  /**
221
- * Failure dataset type.
221
+ * Failure dataset interface.
222
222
  */
223
223
  interface FailureDataset<TIssue extends BaseIssue<unknown>> {
224
224
  /**
@@ -242,7 +242,7 @@ type OutputDataset<TValue, TIssue extends BaseIssue<unknown>> = SuccessDataset<T
242
242
  /**
243
243
  * The Standard Schema properties interface.
244
244
  */
245
- interface StandardSchemaProps<Input, Output> {
245
+ interface StandardProps<TInput, TOutput> {
246
246
  /**
247
247
  * The version number of the standard.
248
248
  */
@@ -254,24 +254,24 @@ interface StandardSchemaProps<Input, Output> {
254
254
  /**
255
255
  * Validates unknown input values.
256
256
  */
257
- readonly validate: (value: unknown) => StandardResult<Output> | Promise<StandardResult<Output>>;
257
+ readonly validate: (value: unknown) => StandardResult<TOutput> | Promise<StandardResult<TOutput>>;
258
258
  /**
259
259
  * Inferred types associated with the schema.
260
260
  */
261
- readonly types?: StandardTypes<Input, Output> | undefined;
261
+ readonly types?: StandardTypes<TInput, TOutput> | undefined;
262
262
  }
263
263
  /**
264
264
  * The result interface of the validate function.
265
265
  */
266
- type StandardResult<Output> = StandardSuccessResult<Output> | StandardFailureResult;
266
+ type StandardResult<TOutput> = StandardSuccessResult<TOutput> | StandardFailureResult;
267
267
  /**
268
268
  * The result interface if validation succeeds.
269
269
  */
270
- interface StandardSuccessResult<Output> {
270
+ interface StandardSuccessResult<TOutput> {
271
271
  /**
272
272
  * The typed output value.
273
273
  */
274
- readonly value: Output;
274
+ readonly value: TOutput;
275
275
  /**
276
276
  * The non-existent issues.
277
277
  */
@@ -297,33 +297,33 @@ interface StandardIssue {
297
297
  /**
298
298
  * The path of the issue, if any.
299
299
  */
300
- readonly path?: readonly (PropertyKey | StandardPathSegment)[] | undefined;
300
+ readonly path?: readonly (PropertyKey | StandardPathItem)[] | undefined;
301
301
  }
302
302
  /**
303
- * The path segment interface of the issue.
303
+ * The path item interface of the issue.
304
304
  */
305
- interface StandardPathSegment {
305
+ interface StandardPathItem {
306
306
  /**
307
- * The key representing a path segment.
307
+ * The key of the path item.
308
308
  */
309
309
  readonly key: PropertyKey;
310
310
  }
311
311
  /**
312
- * The base types interface of Standard Schema.
312
+ * The Standard Schema types interface.
313
313
  */
314
- interface StandardTypes<Input, Output> {
314
+ interface StandardTypes<TInput, TOutput> {
315
315
  /**
316
316
  * The input type of the schema.
317
317
  */
318
- readonly input: Input;
318
+ readonly input: TInput;
319
319
  /**
320
320
  * The output type of the schema.
321
321
  */
322
- readonly output: Output;
322
+ readonly output: TOutput;
323
323
  }
324
324
 
325
325
  /**
326
- * Base schema type.
326
+ * Base schema interface.
327
327
  */
328
328
  interface BaseSchema<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
329
329
  /**
@@ -351,7 +351,7 @@ interface BaseSchema<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
351
351
  *
352
352
  * @internal
353
353
  */
354
- readonly '~standard': StandardSchemaProps<TInput, TOutput>;
354
+ readonly '~standard': StandardProps<TInput, TOutput>;
355
355
  /**
356
356
  * Parses unknown input values.
357
357
  *
@@ -375,7 +375,7 @@ interface BaseSchema<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
375
375
  } | undefined;
376
376
  }
377
377
  /**
378
- * Base schema async type.
378
+ * Base schema async interface.
379
379
  */
380
380
  interface BaseSchemaAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> extends Omit<BaseSchema<TInput, TOutput, TIssue>, 'reference' | 'async' | '~run'> {
381
381
  /**
@@ -400,7 +400,7 @@ interface BaseSchemaAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> ex
400
400
  }
401
401
 
402
402
  /**
403
- * Base transformation type.
403
+ * Base transformation interface.
404
404
  */
405
405
  interface BaseTransformation<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
406
406
  /**
@@ -442,7 +442,7 @@ interface BaseTransformation<TInput, TOutput, TIssue extends BaseIssue<unknown>>
442
442
  } | undefined;
443
443
  }
444
444
  /**
445
- * Base transformation async type.
445
+ * Base transformation async interface.
446
446
  */
447
447
  interface BaseTransformationAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> extends Omit<BaseTransformation<TInput, TOutput, TIssue>, 'reference' | 'async' | '~run'> {
448
448
  /**
@@ -467,7 +467,7 @@ interface BaseTransformationAsync<TInput, TOutput, TIssue extends BaseIssue<unkn
467
467
  }
468
468
 
469
469
  /**
470
- * Base validation type.
470
+ * Base validation interface.
471
471
  */
472
472
  interface BaseValidation<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
473
473
  /**
@@ -513,7 +513,7 @@ interface BaseValidation<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
513
513
  } | undefined;
514
514
  }
515
515
  /**
516
- * Base validation async type.
516
+ * Base validation async interface.
517
517
  */
518
518
  interface BaseValidationAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> extends Omit<BaseValidation<TInput, TOutput, TIssue>, 'reference' | 'async' | '~run'> {
519
519
  /**
@@ -620,13 +620,13 @@ type SchemaWithoutPipe<TSchema extends BaseSchema<unknown, unknown, BaseIssue<un
620
620
  };
621
621
 
622
622
  /**
623
- * Object entries type.
623
+ * Object entries interface.
624
624
  */
625
625
  interface ObjectEntries {
626
626
  [key: string]: BaseSchema<unknown, unknown, BaseIssue<unknown>>;
627
627
  }
628
628
  /**
629
- * Object entries async type.
629
+ * Object entries async interface.
630
630
  */
631
631
  interface ObjectEntriesAsync {
632
632
  [key: string]: BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>;
@@ -703,7 +703,7 @@ type InferObjectOutput<TEntries extends ObjectEntries | ObjectEntriesAsync> = Pr
703
703
  type InferObjectIssue<TEntries extends ObjectEntries | ObjectEntriesAsync> = InferIssue<TEntries[keyof TEntries]>;
704
704
 
705
705
  /**
706
- * Array path item type.
706
+ * Array path item interface.
707
707
  */
708
708
  interface ArrayPathItem {
709
709
  /**
@@ -728,7 +728,7 @@ interface ArrayPathItem {
728
728
  readonly value: unknown;
729
729
  }
730
730
  /**
731
- * Map path item type.
731
+ * Map path item interface.
732
732
  */
733
733
  interface MapPathItem {
734
734
  /**
@@ -753,7 +753,7 @@ interface MapPathItem {
753
753
  readonly value: unknown;
754
754
  }
755
755
  /**
756
- * Object path item type.
756
+ * Object path item interface.
757
757
  */
758
758
  interface ObjectPathItem {
759
759
  /**
@@ -778,7 +778,7 @@ interface ObjectPathItem {
778
778
  readonly value: unknown;
779
779
  }
780
780
  /**
781
- * Set path item type.
781
+ * Set path item interface.
782
782
  */
783
783
  interface SetPathItem {
784
784
  /**
@@ -803,7 +803,7 @@ interface SetPathItem {
803
803
  readonly value: unknown;
804
804
  }
805
805
  /**
806
- * Unknown path item type.
806
+ * Unknown path item interface.
807
807
  */
808
808
  interface UnknownPathItem {
809
809
  /**
@@ -832,7 +832,7 @@ interface UnknownPathItem {
832
832
  */
833
833
  type IssuePathItem = ArrayPathItem | MapPathItem | ObjectPathItem | SetPathItem | UnknownPathItem;
834
834
  /**
835
- * Base issue type.
835
+ * Base issue interface.
836
836
  */
837
837
  interface BaseIssue<TInput> extends Config<BaseIssue<TInput>> {
838
838
  /**
@@ -874,7 +874,7 @@ interface BaseIssue<TInput> extends Config<BaseIssue<TInput>> {
874
874
  }
875
875
 
876
876
  /**
877
- * Config type.
877
+ * Config interface.
878
878
  */
879
879
  interface Config<TIssue extends BaseIssue<unknown>> {
880
880
  /**
@@ -896,7 +896,7 @@ interface Config<TIssue extends BaseIssue<unknown>> {
896
896
  }
897
897
 
898
898
  /**
899
- * Array issue type.
899
+ * Array issue interface.
900
900
  */
901
901
  interface ArrayIssue extends BaseIssue<unknown> {
902
902
  /**
@@ -914,7 +914,7 @@ interface ArrayIssue extends BaseIssue<unknown> {
914
914
  }
915
915
 
916
916
  /**
917
- * Array schema type.
917
+ * Array schema interface.
918
918
  */
919
919
  interface ArraySchema<TItem extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TMessage extends ErrorMessage<ArrayIssue> | undefined> extends BaseSchema<InferInput<TItem>[], InferOutput<TItem>[], ArrayIssue | InferIssue<TItem>> {
920
920
  /**
@@ -957,7 +957,7 @@ declare function array<const TItem extends BaseSchema<unknown, unknown, BaseIssu
957
957
  declare function array<const TItem extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, const TMessage extends ErrorMessage<ArrayIssue> | undefined>(item: TItem, message: TMessage): ArraySchema<TItem, TMessage>;
958
958
 
959
959
  /**
960
- * Boolean issue type.
960
+ * Boolean issue interface.
961
961
  */
962
962
  interface BooleanIssue extends BaseIssue<unknown> {
963
963
  /**
@@ -974,7 +974,7 @@ interface BooleanIssue extends BaseIssue<unknown> {
974
974
  readonly expected: 'boolean';
975
975
  }
976
976
  /**
977
- * Boolean schema type.
977
+ * Boolean schema interface.
978
978
  */
979
979
  interface BooleanSchema<TMessage extends ErrorMessage<BooleanIssue> | undefined> extends BaseSchema<boolean, boolean, BooleanIssue> {
980
980
  /**
@@ -1015,7 +1015,7 @@ declare function boolean<const TMessage extends ErrorMessage<BooleanIssue> | und
1015
1015
  type InferNullishOutput<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, null | undefined>> = undefined extends TDefault ? InferOutput<TWrapped> | null | undefined : InferOutput<TWrapped> | Extract<DefaultValue<TDefault>, null | undefined>;
1016
1016
 
1017
1017
  /**
1018
- * Nullish schema type.
1018
+ * Nullish schema interface.
1019
1019
  */
1020
1020
  interface NullishSchema<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TDefault extends Default<TWrapped, null | undefined>> extends BaseSchema<InferInput<TWrapped> | null | undefined, InferNullishOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1021
1021
  /**
@@ -1058,7 +1058,7 @@ declare function nullish<const TWrapped extends BaseSchema<unknown, unknown, Bas
1058
1058
  declare function nullish<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, const TDefault extends Default<TWrapped, null | undefined>>(wrapped: TWrapped, default_: TDefault): NullishSchema<TWrapped, TDefault>;
1059
1059
 
1060
1060
  /**
1061
- * Nullish schema async type.
1061
+ * Nullish schema async interface.
1062
1062
  */
1063
1063
  interface NullishSchemaAsync<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, null | undefined>> extends BaseSchemaAsync<InferInput<TWrapped> | null | undefined, InferNullishOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1064
1064
  /**
@@ -1101,7 +1101,7 @@ declare function nullishAsync<const TWrapped extends BaseSchema<unknown, unknown
1101
1101
  declare function nullishAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, const TDefault extends DefaultAsync<TWrapped, null | undefined>>(wrapped: TWrapped, default_: TDefault): NullishSchemaAsync<TWrapped, TDefault>;
1102
1102
 
1103
1103
  /**
1104
- * Object issue type.
1104
+ * Object issue interface.
1105
1105
  */
1106
1106
  interface ObjectIssue extends BaseIssue<unknown> {
1107
1107
  /**
@@ -1119,7 +1119,7 @@ interface ObjectIssue extends BaseIssue<unknown> {
1119
1119
  }
1120
1120
 
1121
1121
  /**
1122
- * Object schema type.
1122
+ * Object schema interface.
1123
1123
  */
1124
1124
  interface ObjectSchema<TEntries extends ObjectEntries, TMessage extends ErrorMessage<ObjectIssue> | undefined> extends BaseSchema<InferObjectInput<TEntries>, InferObjectOutput<TEntries>, ObjectIssue | InferObjectIssue<TEntries>> {
1125
1125
  /**
@@ -1177,7 +1177,7 @@ declare function object<const TEntries extends ObjectEntries, const TMessage ext
1177
1177
  type InferOptionalOutput<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, undefined>> = undefined extends TDefault ? InferOutput<TWrapped> | undefined : InferOutput<TWrapped> | Extract<DefaultValue<TDefault>, undefined>;
1178
1178
 
1179
1179
  /**
1180
- * Optional schema type.
1180
+ * Optional schema interface.
1181
1181
  */
1182
1182
  interface OptionalSchema<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TDefault extends Default<TWrapped, undefined>> extends BaseSchema<InferInput<TWrapped> | undefined, InferOptionalOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1183
1183
  /**
@@ -1220,7 +1220,7 @@ declare function optional<const TWrapped extends BaseSchema<unknown, unknown, Ba
1220
1220
  declare function optional<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, const TDefault extends Default<TWrapped, undefined>>(wrapped: TWrapped, default_: TDefault): OptionalSchema<TWrapped, TDefault>;
1221
1221
 
1222
1222
  /**
1223
- * Optional schema async type.
1223
+ * Optional schema async interface.
1224
1224
  */
1225
1225
  interface OptionalSchemaAsync<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, undefined>> extends BaseSchemaAsync<InferInput<TWrapped> | undefined, InferOptionalOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1226
1226
  /**
@@ -1263,7 +1263,7 @@ declare function optionalAsync<const TWrapped extends BaseSchema<unknown, unknow
1263
1263
  declare function optionalAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, const TDefault extends DefaultAsync<TWrapped, undefined>>(wrapped: TWrapped, default_: TDefault): OptionalSchemaAsync<TWrapped, TDefault>;
1264
1264
 
1265
1265
  /**
1266
- * String issue type.
1266
+ * String issue interface.
1267
1267
  */
1268
1268
  interface StringIssue extends BaseIssue<unknown> {
1269
1269
  /**
@@ -1280,7 +1280,7 @@ interface StringIssue extends BaseIssue<unknown> {
1280
1280
  readonly expected: 'string';
1281
1281
  }
1282
1282
  /**
1283
- * String schema type.
1283
+ * String schema interface.
1284
1284
  */
1285
1285
  interface StringSchema<TMessage extends ErrorMessage<StringIssue> | undefined> extends BaseSchema<string, string, StringIssue> {
1286
1286
  /**
@@ -1316,7 +1316,7 @@ declare function string(): StringSchema<undefined>;
1316
1316
  declare function string<const TMessage extends ErrorMessage<StringIssue> | undefined>(message: TMessage): StringSchema<TMessage>;
1317
1317
 
1318
1318
  /**
1319
- * Readonly action type.
1319
+ * Readonly action interface.
1320
1320
  */
1321
1321
  interface ReadonlyAction<TInput> extends BaseTransformation<TInput, Readonly<TInput>, never> {
1322
1322
  /**
package/dist/index.d.ts CHANGED
@@ -70,7 +70,7 @@ type SchemaWithPipe<TPipe extends [
70
70
  *
71
71
  * @internal
72
72
  */
73
- readonly '~standard': StandardSchemaProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
73
+ readonly '~standard': StandardProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
74
74
  /**
75
75
  * Parses unknown input values.
76
76
  *
@@ -114,7 +114,7 @@ type SchemaWithPipeAsync<TPipe extends [
114
114
  *
115
115
  * @internal
116
116
  */
117
- readonly '~standard': StandardSchemaProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
117
+ readonly '~standard': StandardProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>;
118
118
  /**
119
119
  * Parses unknown input values.
120
120
  *
@@ -139,7 +139,7 @@ type SchemaWithPipeAsync<TPipe extends [
139
139
  };
140
140
 
141
141
  /**
142
- * Base metadata type.
142
+ * Base metadata interface.
143
143
  */
144
144
  interface BaseMetadata<TInput> {
145
145
  /**
@@ -167,7 +167,7 @@ interface BaseMetadata<TInput> {
167
167
  }
168
168
 
169
169
  /**
170
- * Unknown dataset type.
170
+ * Unknown dataset interface.
171
171
  */
172
172
  interface UnknownDataset {
173
173
  /**
@@ -184,7 +184,7 @@ interface UnknownDataset {
184
184
  issues?: undefined;
185
185
  }
186
186
  /**
187
- * Success dataset type.
187
+ * Success dataset interface.
188
188
  */
189
189
  interface SuccessDataset<TValue> {
190
190
  /**
@@ -201,7 +201,7 @@ interface SuccessDataset<TValue> {
201
201
  issues?: undefined;
202
202
  }
203
203
  /**
204
- * Partial dataset type.
204
+ * Partial dataset interface.
205
205
  */
206
206
  interface PartialDataset<TValue, TIssue extends BaseIssue<unknown>> {
207
207
  /**
@@ -218,7 +218,7 @@ interface PartialDataset<TValue, TIssue extends BaseIssue<unknown>> {
218
218
  issues: [TIssue, ...TIssue[]];
219
219
  }
220
220
  /**
221
- * Failure dataset type.
221
+ * Failure dataset interface.
222
222
  */
223
223
  interface FailureDataset<TIssue extends BaseIssue<unknown>> {
224
224
  /**
@@ -242,7 +242,7 @@ type OutputDataset<TValue, TIssue extends BaseIssue<unknown>> = SuccessDataset<T
242
242
  /**
243
243
  * The Standard Schema properties interface.
244
244
  */
245
- interface StandardSchemaProps<Input, Output> {
245
+ interface StandardProps<TInput, TOutput> {
246
246
  /**
247
247
  * The version number of the standard.
248
248
  */
@@ -254,24 +254,24 @@ interface StandardSchemaProps<Input, Output> {
254
254
  /**
255
255
  * Validates unknown input values.
256
256
  */
257
- readonly validate: (value: unknown) => StandardResult<Output> | Promise<StandardResult<Output>>;
257
+ readonly validate: (value: unknown) => StandardResult<TOutput> | Promise<StandardResult<TOutput>>;
258
258
  /**
259
259
  * Inferred types associated with the schema.
260
260
  */
261
- readonly types?: StandardTypes<Input, Output> | undefined;
261
+ readonly types?: StandardTypes<TInput, TOutput> | undefined;
262
262
  }
263
263
  /**
264
264
  * The result interface of the validate function.
265
265
  */
266
- type StandardResult<Output> = StandardSuccessResult<Output> | StandardFailureResult;
266
+ type StandardResult<TOutput> = StandardSuccessResult<TOutput> | StandardFailureResult;
267
267
  /**
268
268
  * The result interface if validation succeeds.
269
269
  */
270
- interface StandardSuccessResult<Output> {
270
+ interface StandardSuccessResult<TOutput> {
271
271
  /**
272
272
  * The typed output value.
273
273
  */
274
- readonly value: Output;
274
+ readonly value: TOutput;
275
275
  /**
276
276
  * The non-existent issues.
277
277
  */
@@ -297,33 +297,33 @@ interface StandardIssue {
297
297
  /**
298
298
  * The path of the issue, if any.
299
299
  */
300
- readonly path?: readonly (PropertyKey | StandardPathSegment)[] | undefined;
300
+ readonly path?: readonly (PropertyKey | StandardPathItem)[] | undefined;
301
301
  }
302
302
  /**
303
- * The path segment interface of the issue.
303
+ * The path item interface of the issue.
304
304
  */
305
- interface StandardPathSegment {
305
+ interface StandardPathItem {
306
306
  /**
307
- * The key representing a path segment.
307
+ * The key of the path item.
308
308
  */
309
309
  readonly key: PropertyKey;
310
310
  }
311
311
  /**
312
- * The base types interface of Standard Schema.
312
+ * The Standard Schema types interface.
313
313
  */
314
- interface StandardTypes<Input, Output> {
314
+ interface StandardTypes<TInput, TOutput> {
315
315
  /**
316
316
  * The input type of the schema.
317
317
  */
318
- readonly input: Input;
318
+ readonly input: TInput;
319
319
  /**
320
320
  * The output type of the schema.
321
321
  */
322
- readonly output: Output;
322
+ readonly output: TOutput;
323
323
  }
324
324
 
325
325
  /**
326
- * Base schema type.
326
+ * Base schema interface.
327
327
  */
328
328
  interface BaseSchema<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
329
329
  /**
@@ -351,7 +351,7 @@ interface BaseSchema<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
351
351
  *
352
352
  * @internal
353
353
  */
354
- readonly '~standard': StandardSchemaProps<TInput, TOutput>;
354
+ readonly '~standard': StandardProps<TInput, TOutput>;
355
355
  /**
356
356
  * Parses unknown input values.
357
357
  *
@@ -375,7 +375,7 @@ interface BaseSchema<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
375
375
  } | undefined;
376
376
  }
377
377
  /**
378
- * Base schema async type.
378
+ * Base schema async interface.
379
379
  */
380
380
  interface BaseSchemaAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> extends Omit<BaseSchema<TInput, TOutput, TIssue>, 'reference' | 'async' | '~run'> {
381
381
  /**
@@ -400,7 +400,7 @@ interface BaseSchemaAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> ex
400
400
  }
401
401
 
402
402
  /**
403
- * Base transformation type.
403
+ * Base transformation interface.
404
404
  */
405
405
  interface BaseTransformation<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
406
406
  /**
@@ -442,7 +442,7 @@ interface BaseTransformation<TInput, TOutput, TIssue extends BaseIssue<unknown>>
442
442
  } | undefined;
443
443
  }
444
444
  /**
445
- * Base transformation async type.
445
+ * Base transformation async interface.
446
446
  */
447
447
  interface BaseTransformationAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> extends Omit<BaseTransformation<TInput, TOutput, TIssue>, 'reference' | 'async' | '~run'> {
448
448
  /**
@@ -467,7 +467,7 @@ interface BaseTransformationAsync<TInput, TOutput, TIssue extends BaseIssue<unkn
467
467
  }
468
468
 
469
469
  /**
470
- * Base validation type.
470
+ * Base validation interface.
471
471
  */
472
472
  interface BaseValidation<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
473
473
  /**
@@ -513,7 +513,7 @@ interface BaseValidation<TInput, TOutput, TIssue extends BaseIssue<unknown>> {
513
513
  } | undefined;
514
514
  }
515
515
  /**
516
- * Base validation async type.
516
+ * Base validation async interface.
517
517
  */
518
518
  interface BaseValidationAsync<TInput, TOutput, TIssue extends BaseIssue<unknown>> extends Omit<BaseValidation<TInput, TOutput, TIssue>, 'reference' | 'async' | '~run'> {
519
519
  /**
@@ -620,13 +620,13 @@ type SchemaWithoutPipe<TSchema extends BaseSchema<unknown, unknown, BaseIssue<un
620
620
  };
621
621
 
622
622
  /**
623
- * Object entries type.
623
+ * Object entries interface.
624
624
  */
625
625
  interface ObjectEntries {
626
626
  [key: string]: BaseSchema<unknown, unknown, BaseIssue<unknown>>;
627
627
  }
628
628
  /**
629
- * Object entries async type.
629
+ * Object entries async interface.
630
630
  */
631
631
  interface ObjectEntriesAsync {
632
632
  [key: string]: BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>;
@@ -703,7 +703,7 @@ type InferObjectOutput<TEntries extends ObjectEntries | ObjectEntriesAsync> = Pr
703
703
  type InferObjectIssue<TEntries extends ObjectEntries | ObjectEntriesAsync> = InferIssue<TEntries[keyof TEntries]>;
704
704
 
705
705
  /**
706
- * Array path item type.
706
+ * Array path item interface.
707
707
  */
708
708
  interface ArrayPathItem {
709
709
  /**
@@ -728,7 +728,7 @@ interface ArrayPathItem {
728
728
  readonly value: unknown;
729
729
  }
730
730
  /**
731
- * Map path item type.
731
+ * Map path item interface.
732
732
  */
733
733
  interface MapPathItem {
734
734
  /**
@@ -753,7 +753,7 @@ interface MapPathItem {
753
753
  readonly value: unknown;
754
754
  }
755
755
  /**
756
- * Object path item type.
756
+ * Object path item interface.
757
757
  */
758
758
  interface ObjectPathItem {
759
759
  /**
@@ -778,7 +778,7 @@ interface ObjectPathItem {
778
778
  readonly value: unknown;
779
779
  }
780
780
  /**
781
- * Set path item type.
781
+ * Set path item interface.
782
782
  */
783
783
  interface SetPathItem {
784
784
  /**
@@ -803,7 +803,7 @@ interface SetPathItem {
803
803
  readonly value: unknown;
804
804
  }
805
805
  /**
806
- * Unknown path item type.
806
+ * Unknown path item interface.
807
807
  */
808
808
  interface UnknownPathItem {
809
809
  /**
@@ -832,7 +832,7 @@ interface UnknownPathItem {
832
832
  */
833
833
  type IssuePathItem = ArrayPathItem | MapPathItem | ObjectPathItem | SetPathItem | UnknownPathItem;
834
834
  /**
835
- * Base issue type.
835
+ * Base issue interface.
836
836
  */
837
837
  interface BaseIssue<TInput> extends Config<BaseIssue<TInput>> {
838
838
  /**
@@ -874,7 +874,7 @@ interface BaseIssue<TInput> extends Config<BaseIssue<TInput>> {
874
874
  }
875
875
 
876
876
  /**
877
- * Config type.
877
+ * Config interface.
878
878
  */
879
879
  interface Config<TIssue extends BaseIssue<unknown>> {
880
880
  /**
@@ -896,7 +896,7 @@ interface Config<TIssue extends BaseIssue<unknown>> {
896
896
  }
897
897
 
898
898
  /**
899
- * Array issue type.
899
+ * Array issue interface.
900
900
  */
901
901
  interface ArrayIssue extends BaseIssue<unknown> {
902
902
  /**
@@ -914,7 +914,7 @@ interface ArrayIssue extends BaseIssue<unknown> {
914
914
  }
915
915
 
916
916
  /**
917
- * Array schema type.
917
+ * Array schema interface.
918
918
  */
919
919
  interface ArraySchema<TItem extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TMessage extends ErrorMessage<ArrayIssue> | undefined> extends BaseSchema<InferInput<TItem>[], InferOutput<TItem>[], ArrayIssue | InferIssue<TItem>> {
920
920
  /**
@@ -957,7 +957,7 @@ declare function array<const TItem extends BaseSchema<unknown, unknown, BaseIssu
957
957
  declare function array<const TItem extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, const TMessage extends ErrorMessage<ArrayIssue> | undefined>(item: TItem, message: TMessage): ArraySchema<TItem, TMessage>;
958
958
 
959
959
  /**
960
- * Boolean issue type.
960
+ * Boolean issue interface.
961
961
  */
962
962
  interface BooleanIssue extends BaseIssue<unknown> {
963
963
  /**
@@ -974,7 +974,7 @@ interface BooleanIssue extends BaseIssue<unknown> {
974
974
  readonly expected: 'boolean';
975
975
  }
976
976
  /**
977
- * Boolean schema type.
977
+ * Boolean schema interface.
978
978
  */
979
979
  interface BooleanSchema<TMessage extends ErrorMessage<BooleanIssue> | undefined> extends BaseSchema<boolean, boolean, BooleanIssue> {
980
980
  /**
@@ -1015,7 +1015,7 @@ declare function boolean<const TMessage extends ErrorMessage<BooleanIssue> | und
1015
1015
  type InferNullishOutput<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, null | undefined>> = undefined extends TDefault ? InferOutput<TWrapped> | null | undefined : InferOutput<TWrapped> | Extract<DefaultValue<TDefault>, null | undefined>;
1016
1016
 
1017
1017
  /**
1018
- * Nullish schema type.
1018
+ * Nullish schema interface.
1019
1019
  */
1020
1020
  interface NullishSchema<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TDefault extends Default<TWrapped, null | undefined>> extends BaseSchema<InferInput<TWrapped> | null | undefined, InferNullishOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1021
1021
  /**
@@ -1058,7 +1058,7 @@ declare function nullish<const TWrapped extends BaseSchema<unknown, unknown, Bas
1058
1058
  declare function nullish<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, const TDefault extends Default<TWrapped, null | undefined>>(wrapped: TWrapped, default_: TDefault): NullishSchema<TWrapped, TDefault>;
1059
1059
 
1060
1060
  /**
1061
- * Nullish schema async type.
1061
+ * Nullish schema async interface.
1062
1062
  */
1063
1063
  interface NullishSchemaAsync<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, null | undefined>> extends BaseSchemaAsync<InferInput<TWrapped> | null | undefined, InferNullishOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1064
1064
  /**
@@ -1101,7 +1101,7 @@ declare function nullishAsync<const TWrapped extends BaseSchema<unknown, unknown
1101
1101
  declare function nullishAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, const TDefault extends DefaultAsync<TWrapped, null | undefined>>(wrapped: TWrapped, default_: TDefault): NullishSchemaAsync<TWrapped, TDefault>;
1102
1102
 
1103
1103
  /**
1104
- * Object issue type.
1104
+ * Object issue interface.
1105
1105
  */
1106
1106
  interface ObjectIssue extends BaseIssue<unknown> {
1107
1107
  /**
@@ -1119,7 +1119,7 @@ interface ObjectIssue extends BaseIssue<unknown> {
1119
1119
  }
1120
1120
 
1121
1121
  /**
1122
- * Object schema type.
1122
+ * Object schema interface.
1123
1123
  */
1124
1124
  interface ObjectSchema<TEntries extends ObjectEntries, TMessage extends ErrorMessage<ObjectIssue> | undefined> extends BaseSchema<InferObjectInput<TEntries>, InferObjectOutput<TEntries>, ObjectIssue | InferObjectIssue<TEntries>> {
1125
1125
  /**
@@ -1177,7 +1177,7 @@ declare function object<const TEntries extends ObjectEntries, const TMessage ext
1177
1177
  type InferOptionalOutput<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, undefined>> = undefined extends TDefault ? InferOutput<TWrapped> | undefined : InferOutput<TWrapped> | Extract<DefaultValue<TDefault>, undefined>;
1178
1178
 
1179
1179
  /**
1180
- * Optional schema type.
1180
+ * Optional schema interface.
1181
1181
  */
1182
1182
  interface OptionalSchema<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TDefault extends Default<TWrapped, undefined>> extends BaseSchema<InferInput<TWrapped> | undefined, InferOptionalOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1183
1183
  /**
@@ -1220,7 +1220,7 @@ declare function optional<const TWrapped extends BaseSchema<unknown, unknown, Ba
1220
1220
  declare function optional<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, const TDefault extends Default<TWrapped, undefined>>(wrapped: TWrapped, default_: TDefault): OptionalSchema<TWrapped, TDefault>;
1221
1221
 
1222
1222
  /**
1223
- * Optional schema async type.
1223
+ * Optional schema async interface.
1224
1224
  */
1225
1225
  interface OptionalSchemaAsync<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, undefined>> extends BaseSchemaAsync<InferInput<TWrapped> | undefined, InferOptionalOutput<TWrapped, TDefault>, InferIssue<TWrapped>> {
1226
1226
  /**
@@ -1263,7 +1263,7 @@ declare function optionalAsync<const TWrapped extends BaseSchema<unknown, unknow
1263
1263
  declare function optionalAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, const TDefault extends DefaultAsync<TWrapped, undefined>>(wrapped: TWrapped, default_: TDefault): OptionalSchemaAsync<TWrapped, TDefault>;
1264
1264
 
1265
1265
  /**
1266
- * String issue type.
1266
+ * String issue interface.
1267
1267
  */
1268
1268
  interface StringIssue extends BaseIssue<unknown> {
1269
1269
  /**
@@ -1280,7 +1280,7 @@ interface StringIssue extends BaseIssue<unknown> {
1280
1280
  readonly expected: 'string';
1281
1281
  }
1282
1282
  /**
1283
- * String schema type.
1283
+ * String schema interface.
1284
1284
  */
1285
1285
  interface StringSchema<TMessage extends ErrorMessage<StringIssue> | undefined> extends BaseSchema<string, string, StringIssue> {
1286
1286
  /**
@@ -1316,7 +1316,7 @@ declare function string(): StringSchema<undefined>;
1316
1316
  declare function string<const TMessage extends ErrorMessage<StringIssue> | undefined>(message: TMessage): StringSchema<TMessage>;
1317
1317
 
1318
1318
  /**
1319
- * Readonly action type.
1319
+ * Readonly action interface.
1320
1320
  */
1321
1321
  interface ReadonlyAction<TInput> extends BaseTransformation<TInput, Readonly<TInput>, never> {
1322
1322
  /**
package/dist/index.js CHANGED
@@ -230,7 +230,7 @@ function getReactVersion(fallback = "19.0.0") {
230
230
  }
231
231
  }
232
232
 
233
- // ../../node_modules/.pnpm/valibot@1.0.0-beta.11_typescript@5.7.3/node_modules/valibot/dist/index.js
233
+ // ../../node_modules/.pnpm/valibot@1.0.0-beta.12_typescript@5.7.3/node_modules/valibot/dist/index.js
234
234
  var store;
235
235
  // @__NO_SIDE_EFFECTS__
236
236
  function getGlobalConfig(config2) {
@@ -524,7 +524,6 @@ function string(message) {
524
524
  }
525
525
  };
526
526
  }
527
- // @__NO_SIDE_EFFECTS__
528
527
  function parse(schema, input, config2) {
529
528
  const dataset = schema["~run"]({ value: input }, /* @__PURE__ */ getGlobalConfig(config2));
530
529
  if (dataset.issues) {
package/dist/index.mjs CHANGED
@@ -222,7 +222,7 @@ function getReactVersion(fallback = "19.0.0") {
222
222
  }
223
223
  }
224
224
 
225
- // ../../node_modules/.pnpm/valibot@1.0.0-beta.11_typescript@5.7.3/node_modules/valibot/dist/index.js
225
+ // ../../node_modules/.pnpm/valibot@1.0.0-beta.12_typescript@5.7.3/node_modules/valibot/dist/index.js
226
226
  var store;
227
227
  // @__NO_SIDE_EFFECTS__
228
228
  function getGlobalConfig(config2) {
@@ -516,7 +516,6 @@ function string(message) {
516
516
  }
517
517
  };
518
518
  }
519
- // @__NO_SIDE_EFFECTS__
520
519
  function parse(schema, input, config2) {
521
520
  const dataset = schema["~run"]({ value: input }, /* @__PURE__ */ getGlobalConfig(config2));
522
521
  if (dataset.issues) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.24.0-next.11",
3
+ "version": "1.24.0-next.12",
4
4
  "description": "ESLint React's Shared constants and functions.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -36,7 +36,7 @@
36
36
  "@typescript-eslint/utils": "^8.20.0",
37
37
  "picomatch": "^4.0.2",
38
38
  "ts-pattern": "^5.6.0",
39
- "@eslint-react/eff": "1.24.0-next.11"
39
+ "@eslint-react/eff": "1.24.0-next.12"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/picomatch": "^3.0.1",
@@ -44,7 +44,7 @@
44
44
  "micro-memoize": "^4.1.3",
45
45
  "tsup": "^8.3.5",
46
46
  "type-fest": "^4.32.0",
47
- "valibot": "^1.0.0-beta.11",
47
+ "valibot": "^1.0.0-beta.12",
48
48
  "@workspace/configs": "0.0.0"
49
49
  },
50
50
  "engines": {