@eslint-react/shared 1.16.0-next.0 → 1.16.1-beta.3

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
@@ -502,11 +502,11 @@ type ErrorMessage<TIssue extends BaseIssue<unknown>> = ((issue: TIssue) => strin
502
502
  /**
503
503
  * Default type.
504
504
  */
505
- type Default<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TInput extends null | undefined> = MaybeReadonly<InferInput<TWrapped> | TInput> | ((dataset?: UnknownDataset, config?: Config<InferIssue<TWrapped>>) => MaybeReadonly<InferInput<TWrapped> | TInput>);
505
+ type Default<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>, TInput extends null | undefined> = MaybeReadonly<InferInput<TWrapped> | TInput> | ((dataset?: UnknownDataset, config?: Config<InferIssue<TWrapped>>) => MaybeReadonly<InferInput<TWrapped> | TInput>) | undefined;
506
506
  /**
507
507
  * Default async type.
508
508
  */
509
- type DefaultAsync<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TInput extends null | undefined> = MaybeReadonly<InferInput<TWrapped> | TInput> | ((dataset?: UnknownDataset, config?: Config<InferIssue<TWrapped>>) => MaybePromise<MaybeReadonly<InferInput<TWrapped> | TInput>>);
509
+ type DefaultAsync<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TInput extends null | undefined> = MaybeReadonly<InferInput<TWrapped> | TInput> | ((dataset?: UnknownDataset, config?: Config<InferIssue<TWrapped>>) => MaybePromise<MaybeReadonly<InferInput<TWrapped> | TInput>>) | undefined;
510
510
  /**
511
511
  * Default value type.
512
512
  */
@@ -535,17 +535,15 @@ type QuestionMarkSchema = NullishSchema<BaseSchema<unknown, unknown, BaseIssue<u
535
535
  /**
536
536
  * Has default type.
537
537
  */
538
- type HasDefault<TSchema extends QuestionMarkSchema> = [
539
- TSchema['default']
540
- ] extends [never] ? false : true;
538
+ type HasDefault<TSchema extends QuestionMarkSchema> = undefined extends TSchema['default'] ? false : true;
541
539
  /**
542
540
  * Exact optional input type.
543
541
  */
544
- type ExactOptionalInput<TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>> = TSchema extends OptionalSchema<infer TWrapped, never> | OptionalSchemaAsync<infer TWrapped, never> ? ExactOptionalInput<TWrapped> : InferInput<TSchema>;
542
+ type ExactOptionalInput<TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>> = TSchema extends OptionalSchema<infer TWrapped, unknown> | OptionalSchemaAsync<infer TWrapped, unknown> ? ExactOptionalInput<TWrapped> : InferInput<TSchema>;
545
543
  /**
546
544
  * Exact optional output type.
547
545
  */
548
- type ExactOptionalOutput<TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>> = TSchema extends OptionalSchema<infer TWrapped, never> | OptionalSchemaAsync<infer TWrapped, never> ? HasDefault<TSchema> extends true ? InferOutput<TSchema> : ExactOptionalOutput<TWrapped> : InferOutput<TSchema>;
546
+ type ExactOptionalOutput<TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>> = TSchema extends OptionalSchema<infer TWrapped, unknown> | OptionalSchemaAsync<infer TWrapped, unknown> ? HasDefault<TSchema> extends true ? InferOutput<TSchema> : ExactOptionalOutput<TWrapped> : InferOutput<TSchema>;
549
547
  /**
550
548
  * Infer entries input type.
551
549
  */
@@ -573,11 +571,11 @@ type OptionalOutputKeys<TEntries extends ObjectEntries | ObjectEntriesAsync> = {
573
571
  /**
574
572
  * Input with question marks type.
575
573
  */
576
- type InputWithQuestionMarks<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends InferEntriesInput<TEntries> | InferEntriesOutput<TEntries>> = MarkOptional<TObject, OptionalInputKeys<TEntries>>;
574
+ type InputWithQuestionMarks<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends InferEntriesInput<TEntries>> = MarkOptional<TObject, OptionalInputKeys<TEntries>>;
577
575
  /**
578
576
  * Output with question marks type.
579
577
  */
580
- type OutputWithQuestionMarks<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends InferEntriesInput<TEntries> | InferEntriesOutput<TEntries>> = MarkOptional<TObject, OptionalOutputKeys<TEntries>>;
578
+ type OutputWithQuestionMarks<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends InferEntriesOutput<TEntries>> = MarkOptional<TObject, OptionalOutputKeys<TEntries>>;
581
579
  /**
582
580
  * Readonly output keys type.
583
581
  */
@@ -994,7 +992,7 @@ declare function instance<TClass extends Class, const TMessage extends ErrorMess
994
992
  /**
995
993
  * Infer nullish output type.
996
994
  */
997
- type InferNullishOutput<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, null | undefined>> = [TDefault] extends [never] ? InferOutput<TWrapped> | null | undefined : NonNullish<InferOutput<TWrapped>> | Extract<DefaultValue<TDefault>, null | undefined>;
995
+ 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 : NonNullish<InferOutput<TWrapped>> | Extract<DefaultValue<TDefault>, null | undefined>;
998
996
 
999
997
  /**
1000
998
  * Nullish schema type.
@@ -1028,7 +1026,7 @@ interface NullishSchema<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<
1028
1026
  *
1029
1027
  * @returns A nullish schema.
1030
1028
  */
1031
- declare function nullish<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): NullishSchema<TWrapped, never>;
1029
+ declare function nullish<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): NullishSchema<TWrapped, undefined>;
1032
1030
  /**
1033
1031
  * Creates a nullish schema.
1034
1032
  *
@@ -1071,7 +1069,7 @@ interface NullishSchemaAsync<TWrapped extends BaseSchema<unknown, unknown, BaseI
1071
1069
  *
1072
1070
  * @returns A nullish schema.
1073
1071
  */
1074
- declare function nullishAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): NullishSchemaAsync<TWrapped, never>;
1072
+ declare function nullishAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): NullishSchemaAsync<TWrapped, undefined>;
1075
1073
  /**
1076
1074
  * Creates a nullish schema.
1077
1075
  *
@@ -1156,7 +1154,7 @@ declare function object<const TEntries extends ObjectEntries, const TMessage ext
1156
1154
  /**
1157
1155
  * Infer optional output type.
1158
1156
  */
1159
- type InferOptionalOutput<TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>, TDefault extends DefaultAsync<TWrapped, undefined>> = [TDefault] extends [never] ? InferOutput<TWrapped> | undefined : NonOptional<InferOutput<TWrapped>> | Extract<DefaultValue<TDefault>, undefined>;
1157
+ 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 : NonOptional<InferOutput<TWrapped>> | Extract<DefaultValue<TDefault>, undefined>;
1160
1158
 
1161
1159
  /**
1162
1160
  * Optional schema type.
@@ -1190,7 +1188,7 @@ interface OptionalSchema<TWrapped extends BaseSchema<unknown, unknown, BaseIssue
1190
1188
  *
1191
1189
  * @returns A optional schema.
1192
1190
  */
1193
- declare function optional<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): OptionalSchema<TWrapped, never>;
1191
+ declare function optional<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): OptionalSchema<TWrapped, undefined>;
1194
1192
  /**
1195
1193
  * Creates a optional schema.
1196
1194
  *
@@ -1233,7 +1231,7 @@ interface OptionalSchemaAsync<TWrapped extends BaseSchema<unknown, unknown, Base
1233
1231
  *
1234
1232
  * @returns An optional schema.
1235
1233
  */
1236
- declare function optionalAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): OptionalSchemaAsync<TWrapped, never>;
1234
+ declare function optionalAsync<const TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>>(wrapped: TWrapped): OptionalSchemaAsync<TWrapped, undefined>;
1237
1235
  /**
1238
1236
  * Creates an optional schema.
1239
1237
  *
@@ -1339,19 +1337,19 @@ declare const CustomAttributeSchema: ObjectSchema<{
1339
1337
  * @example
1340
1338
  * "href"
1341
1339
  */
1342
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1340
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1343
1341
  /**
1344
1342
  * Whether the attribute is controlled or not in the user-defined component.
1345
1343
  * @example
1346
1344
  * `true`
1347
1345
  */
1348
- readonly controlled: OptionalSchema<BooleanSchema<undefined>, never>;
1346
+ readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
1349
1347
  /**
1350
1348
  * The default value of the attribute in the user-defined component.
1351
1349
  * @example
1352
1350
  * `"/"`
1353
1351
  */
1354
- readonly defaultValue: OptionalSchema<StringSchema<undefined>, never>;
1352
+ readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
1355
1353
  }, undefined>;
1356
1354
  /**
1357
1355
  * @internal
@@ -1373,13 +1371,13 @@ declare const CustomComponentSchema: ObjectSchema<{
1373
1371
  * @example
1374
1372
  * `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
1375
1373
  */
1376
- readonly selector: OptionalSchema<StringSchema<undefined>, never>;
1374
+ readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
1377
1375
  /**
1378
1376
  * The name of the built-in component that the user-defined component represents.
1379
1377
  * @example
1380
1378
  * "a"
1381
1379
  */
1382
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1380
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1383
1381
  /**
1384
1382
  * Pre-defined attributes that are used in the user-defined component.
1385
1383
  * @example
@@ -1397,24 +1395,24 @@ declare const CustomComponentSchema: ObjectSchema<{
1397
1395
  * @example
1398
1396
  * "href"
1399
1397
  */
1400
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1398
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1401
1399
  /**
1402
1400
  * Whether the attribute is controlled or not in the user-defined component.
1403
1401
  * @example
1404
1402
  * `true`
1405
1403
  */
1406
- readonly controlled: OptionalSchema<BooleanSchema<undefined>, never>;
1404
+ readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
1407
1405
  /**
1408
1406
  * The default value of the attribute in the user-defined component.
1409
1407
  * @example
1410
1408
  * `"/"`
1411
1409
  */
1412
- readonly defaultValue: OptionalSchema<StringSchema<undefined>, never>;
1413
- }, undefined>, undefined>, never>;
1410
+ readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
1411
+ }, undefined>, undefined>, undefined>;
1414
1412
  }, undefined>;
1415
1413
  declare const CustomComponentNormalizedSchema: ObjectSchema<{
1416
1414
  readonly name: StringSchema<undefined>;
1417
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1415
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1418
1416
  readonly attributes: OptionalSchema<ArraySchema<ObjectSchema<{
1419
1417
  /**
1420
1418
  * The name of the attribute in the user-defined component.
@@ -1427,22 +1425,22 @@ declare const CustomComponentNormalizedSchema: ObjectSchema<{
1427
1425
  * @example
1428
1426
  * "href"
1429
1427
  */
1430
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1428
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1431
1429
  /**
1432
1430
  * Whether the attribute is controlled or not in the user-defined component.
1433
1431
  * @example
1434
1432
  * `true`
1435
1433
  */
1436
- readonly controlled: OptionalSchema<BooleanSchema<undefined>, never>;
1434
+ readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
1437
1435
  /**
1438
1436
  * The default value of the attribute in the user-defined component.
1439
1437
  * @example
1440
1438
  * `"/"`
1441
1439
  */
1442
- readonly defaultValue: OptionalSchema<StringSchema<undefined>, never>;
1440
+ readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
1443
1441
  }, undefined>, undefined>, readonly []>;
1444
1442
  readonly re: InstanceSchema<RegExpConstructor, undefined>;
1445
- readonly selector: OptionalSchema<StringSchema<undefined>, never>;
1443
+ readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
1446
1444
  }, undefined>;
1447
1445
  /**
1448
1446
  * @internal
@@ -1454,28 +1452,28 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1454
1452
  * @default `"react"`
1455
1453
  * @example `"@pika/react"`
1456
1454
  */
1457
- readonly importSource: OptionalSchema<StringSchema<undefined>, never>;
1455
+ readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
1458
1456
  /**
1459
1457
  * The identifier that’s used for JSX Element creation.
1460
1458
  * @default `"createElement"`
1461
1459
  */
1462
- readonly jsxPragma: OptionalSchema<StringSchema<undefined>, never>;
1460
+ readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
1463
1461
  /**
1464
1462
  * The identifier that’s used for JSX fragment elements.
1465
1463
  * @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
1466
1464
  * @default `"Fragment"`
1467
1465
  */
1468
- readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, never>;
1466
+ readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
1469
1467
  /**
1470
1468
  * The name of the prop that is used for polymorphic components.
1471
1469
  * @description This is used to determine the type of the component.
1472
1470
  * @example `"as"`
1473
1471
  */
1474
- readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, never>;
1472
+ readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
1475
1473
  /**
1476
1474
  * @internal
1477
1475
  */
1478
- readonly strict: OptionalSchema<BooleanSchema<undefined>, never>;
1476
+ readonly strict: OptionalSchema<BooleanSchema<undefined>, undefined>;
1479
1477
  /**
1480
1478
  * @internal
1481
1479
  */
@@ -1486,7 +1484,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1486
1484
  * @example `"18.3.1"`
1487
1485
  * @default `"detect"`
1488
1486
  */
1489
- readonly version: OptionalSchema<StringSchema<undefined>, never>;
1487
+ readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
1490
1488
  /**
1491
1489
  * An array of user-defined components
1492
1490
  * @description This is used to inform the ESLint React plugins how to treat these components during checks.
@@ -1504,13 +1502,13 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1504
1502
  * @example
1505
1503
  * `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
1506
1504
  */
1507
- readonly selector: OptionalSchema<StringSchema<undefined>, never>;
1505
+ readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
1508
1506
  /**
1509
1507
  * The name of the built-in component that the user-defined component represents.
1510
1508
  * @example
1511
1509
  * "a"
1512
1510
  */
1513
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1511
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1514
1512
  /**
1515
1513
  * Pre-defined attributes that are used in the user-defined component.
1516
1514
  * @example
@@ -1528,46 +1526,46 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1528
1526
  * @example
1529
1527
  * "href"
1530
1528
  */
1531
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1529
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1532
1530
  /**
1533
1531
  * Whether the attribute is controlled or not in the user-defined component.
1534
1532
  * @example
1535
1533
  * `true`
1536
1534
  */
1537
- readonly controlled: OptionalSchema<BooleanSchema<undefined>, never>;
1535
+ readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
1538
1536
  /**
1539
1537
  * The default value of the attribute in the user-defined component.
1540
1538
  * @example
1541
1539
  * `"/"`
1542
1540
  */
1543
- readonly defaultValue: OptionalSchema<StringSchema<undefined>, never>;
1544
- }, undefined>, undefined>, never>;
1545
- }, undefined>, undefined>, never>;
1541
+ readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
1542
+ }, undefined>, undefined>, undefined>;
1543
+ }, undefined>, undefined>, undefined>;
1546
1544
  /**
1547
1545
  * A object of aliases for React built-in hooks.
1548
1546
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1549
1547
  * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1550
1548
  */
1551
1549
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1552
- readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1553
- readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1554
- readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1555
- readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1556
- readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1557
- readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1558
- readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1559
- readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1560
- readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1561
- readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1562
- readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1563
- readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1564
- readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1565
- readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1566
- readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1567
- readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1568
- readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1569
- readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1570
- }, undefined>, never>;
1550
+ readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1551
+ readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1552
+ readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1553
+ readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1554
+ readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1555
+ readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1556
+ readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1557
+ readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1558
+ readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1559
+ readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1560
+ readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1561
+ readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1562
+ readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1563
+ readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1564
+ readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1565
+ readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1566
+ readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1567
+ readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1568
+ }, undefined>, undefined>;
1571
1569
  }, undefined>;
1572
1570
  /**
1573
1571
  * @internal
@@ -1580,28 +1578,28 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1580
1578
  * @default `"react"`
1581
1579
  * @example `"@pika/react"`
1582
1580
  */
1583
- readonly importSource: OptionalSchema<StringSchema<undefined>, never>;
1581
+ readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
1584
1582
  /**
1585
1583
  * The identifier that’s used for JSX Element creation.
1586
1584
  * @default `"createElement"`
1587
1585
  */
1588
- readonly jsxPragma: OptionalSchema<StringSchema<undefined>, never>;
1586
+ readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
1589
1587
  /**
1590
1588
  * The identifier that’s used for JSX fragment elements.
1591
1589
  * @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
1592
1590
  * @default `"Fragment"`
1593
1591
  */
1594
- readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, never>;
1592
+ readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
1595
1593
  /**
1596
1594
  * The name of the prop that is used for polymorphic components.
1597
1595
  * @description This is used to determine the type of the component.
1598
1596
  * @example `"as"`
1599
1597
  */
1600
- readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, never>;
1598
+ readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
1601
1599
  /**
1602
1600
  * @internal
1603
1601
  */
1604
- readonly strict: OptionalSchema<BooleanSchema<undefined>, never>;
1602
+ readonly strict: OptionalSchema<BooleanSchema<undefined>, undefined>;
1605
1603
  /**
1606
1604
  * @internal
1607
1605
  */
@@ -1612,7 +1610,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1612
1610
  * @example `"18.3.1"`
1613
1611
  * @default `"detect"`
1614
1612
  */
1615
- readonly version: OptionalSchema<StringSchema<undefined>, never>;
1613
+ readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
1616
1614
  /**
1617
1615
  * An array of user-defined components
1618
1616
  * @description This is used to inform the ESLint React plugins how to treat these components during checks.
@@ -1630,13 +1628,13 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1630
1628
  * @example
1631
1629
  * `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
1632
1630
  */
1633
- readonly selector: OptionalSchema<StringSchema<undefined>, never>;
1631
+ readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
1634
1632
  /**
1635
1633
  * The name of the built-in component that the user-defined component represents.
1636
1634
  * @example
1637
1635
  * "a"
1638
1636
  */
1639
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1637
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1640
1638
  /**
1641
1639
  * Pre-defined attributes that are used in the user-defined component.
1642
1640
  * @example
@@ -1654,47 +1652,47 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1654
1652
  * @example
1655
1653
  * "href"
1656
1654
  */
1657
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1655
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1658
1656
  /**
1659
1657
  * Whether the attribute is controlled or not in the user-defined component.
1660
1658
  * @example
1661
1659
  * `true`
1662
1660
  */
1663
- readonly controlled: OptionalSchema<BooleanSchema<undefined>, never>;
1661
+ readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
1664
1662
  /**
1665
1663
  * The default value of the attribute in the user-defined component.
1666
1664
  * @example
1667
1665
  * `"/"`
1668
1666
  */
1669
- readonly defaultValue: OptionalSchema<StringSchema<undefined>, never>;
1670
- }, undefined>, undefined>, never>;
1671
- }, undefined>, undefined>, never>;
1667
+ readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
1668
+ }, undefined>, undefined>, undefined>;
1669
+ }, undefined>, undefined>, undefined>;
1672
1670
  /**
1673
1671
  * A object of aliases for React built-in hooks.
1674
1672
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1675
1673
  * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1676
1674
  */
1677
1675
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1678
- readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1679
- readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1680
- readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1681
- readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1682
- readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1683
- readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1684
- readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1685
- readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1686
- readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1687
- readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1688
- readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1689
- readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1690
- readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1691
- readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1692
- readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1693
- readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1694
- readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1695
- readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1696
- }, undefined>, never>;
1697
- }, undefined>, never>;
1676
+ readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1677
+ readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1678
+ readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1679
+ readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1680
+ readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1681
+ readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1682
+ readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1683
+ readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1684
+ readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1685
+ readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1686
+ readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1687
+ readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1688
+ readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1689
+ readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1690
+ readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1691
+ readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1692
+ readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1693
+ readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1694
+ }, undefined>, undefined>;
1695
+ }, undefined>, undefined>;
1698
1696
  /** @deprecated Use `react-x` instead */
1699
1697
  readonly reactOptions: OptionalSchema<ObjectSchema<{
1700
1698
  /**
@@ -1703,28 +1701,28 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1703
1701
  * @default `"react"`
1704
1702
  * @example `"@pika/react"`
1705
1703
  */
1706
- readonly importSource: OptionalSchema<StringSchema<undefined>, never>;
1704
+ readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
1707
1705
  /**
1708
1706
  * The identifier that’s used for JSX Element creation.
1709
1707
  * @default `"createElement"`
1710
1708
  */
1711
- readonly jsxPragma: OptionalSchema<StringSchema<undefined>, never>;
1709
+ readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
1712
1710
  /**
1713
1711
  * The identifier that’s used for JSX fragment elements.
1714
1712
  * @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
1715
1713
  * @default `"Fragment"`
1716
1714
  */
1717
- readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, never>;
1715
+ readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
1718
1716
  /**
1719
1717
  * The name of the prop that is used for polymorphic components.
1720
1718
  * @description This is used to determine the type of the component.
1721
1719
  * @example `"as"`
1722
1720
  */
1723
- readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, never>;
1721
+ readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
1724
1722
  /**
1725
1723
  * @internal
1726
1724
  */
1727
- readonly strict: OptionalSchema<BooleanSchema<undefined>, never>;
1725
+ readonly strict: OptionalSchema<BooleanSchema<undefined>, undefined>;
1728
1726
  /**
1729
1727
  * @internal
1730
1728
  */
@@ -1735,7 +1733,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1735
1733
  * @example `"18.3.1"`
1736
1734
  * @default `"detect"`
1737
1735
  */
1738
- readonly version: OptionalSchema<StringSchema<undefined>, never>;
1736
+ readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
1739
1737
  /**
1740
1738
  * An array of user-defined components
1741
1739
  * @description This is used to inform the ESLint React plugins how to treat these components during checks.
@@ -1753,13 +1751,13 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1753
1751
  * @example
1754
1752
  * `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
1755
1753
  */
1756
- readonly selector: OptionalSchema<StringSchema<undefined>, never>;
1754
+ readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
1757
1755
  /**
1758
1756
  * The name of the built-in component that the user-defined component represents.
1759
1757
  * @example
1760
1758
  * "a"
1761
1759
  */
1762
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1760
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1763
1761
  /**
1764
1762
  * Pre-defined attributes that are used in the user-defined component.
1765
1763
  * @example
@@ -1777,47 +1775,47 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1777
1775
  * @example
1778
1776
  * "href"
1779
1777
  */
1780
- readonly as: OptionalSchema<StringSchema<undefined>, never>;
1778
+ readonly as: OptionalSchema<StringSchema<undefined>, undefined>;
1781
1779
  /**
1782
1780
  * Whether the attribute is controlled or not in the user-defined component.
1783
1781
  * @example
1784
1782
  * `true`
1785
1783
  */
1786
- readonly controlled: OptionalSchema<BooleanSchema<undefined>, never>;
1784
+ readonly controlled: OptionalSchema<BooleanSchema<undefined>, undefined>;
1787
1785
  /**
1788
1786
  * The default value of the attribute in the user-defined component.
1789
1787
  * @example
1790
1788
  * `"/"`
1791
1789
  */
1792
- readonly defaultValue: OptionalSchema<StringSchema<undefined>, never>;
1793
- }, undefined>, undefined>, never>;
1794
- }, undefined>, undefined>, never>;
1790
+ readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
1791
+ }, undefined>, undefined>, undefined>;
1792
+ }, undefined>, undefined>, undefined>;
1795
1793
  /**
1796
1794
  * A object of aliases for React built-in hooks.
1797
1795
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1798
1796
  * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1799
1797
  */
1800
1798
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1801
- readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1802
- readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1803
- readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1804
- readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1805
- readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1806
- readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1807
- readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1808
- readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1809
- readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1810
- readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1811
- readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1812
- readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1813
- readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1814
- readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1815
- readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1816
- readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1817
- readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1818
- readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, never>;
1819
- }, undefined>, never>;
1820
- }, undefined>, never>;
1799
+ readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1800
+ readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1801
+ readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1802
+ readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1803
+ readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1804
+ readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1805
+ readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1806
+ readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1807
+ readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1808
+ readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1809
+ readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1810
+ readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1811
+ readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1812
+ readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1813
+ readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1814
+ readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1815
+ readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1816
+ readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
1817
+ }, undefined>, undefined>;
1818
+ }, undefined>, undefined>;
1821
1819
  }, undefined>, {}>;
1822
1820
  type CustomHook = InferOutput<typeof CustomHookSchema>;
1823
1821
  type CustomAttribute = InferOutput<typeof CustomAttributeSchema>;