@eslint-react/core 2.0.0-next.123 → 2.0.0-next.126

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +17 -0
  2. package/package.json +10 -10
package/dist/index.d.ts CHANGED
@@ -486,10 +486,15 @@ declare function findParentAttribute(node: TSESTree.Node, test?: (node: TSESTree
486
486
  */
487
487
  declare function stringifyJsx(node: TSESTree$1.JSXIdentifier | TSESTree$1.JSXMemberExpression | TSESTree$1.JSXNamespacedName | TSESTree$1.JSXOpeningElement | TSESTree$1.JSXClosingElement | TSESTree$1.JSXOpeningFragment | TSESTree$1.JSXClosingFragment | TSESTree$1.JSXText): string;
488
488
 
489
+ /** @internal */
489
490
  declare const isAnyType: (type: ts.Type) => boolean;
491
+ /** @internal */
490
492
  declare const isBigIntType: (type: ts.Type) => boolean;
493
+ /** @internal */
491
494
  declare const isBooleanType: (type: ts.Type) => boolean;
495
+ /** @internal */
492
496
  declare const isEnumType: (type: ts.Type) => boolean;
497
+ /** @internal */
493
498
  declare const isFalsyBigIntType: (type: ts.Type) => type is ts.LiteralType & {
494
499
  freshType: ts.FreshableType;
495
500
  regularType: ts.FreshableType;
@@ -526,13 +531,21 @@ declare const isFalsyBigIntType: (type: ts.Type) => type is ts.LiteralType & {
526
531
  base10Value: "0";
527
532
  };
528
533
  };
534
+ /** @internal */
529
535
  declare const isFalsyNumberType: (type: ts.Type) => boolean;
536
+ /** @internal */
530
537
  declare const isFalsyStringType: (type: ts.Type) => boolean;
538
+ /** @internal */
531
539
  declare const isNeverType: (type: ts.Type) => boolean;
540
+ /** @internal */
532
541
  declare const isNullishType: (type: ts.Type) => boolean;
542
+ /** @internal */
533
543
  declare const isNumberType: (type: ts.Type) => boolean;
544
+ /** @internal */
534
545
  declare const isObjectType: (type: ts.Type) => boolean;
546
+ /** @internal */
535
547
  declare const isStringType: (type: ts.Type) => boolean;
548
+ /** @internal */
536
549
  declare const isTruthyBigIntType: (type: ts.Type) => type is ts.LiteralType & {
537
550
  freshType: ts.FreshableType;
538
551
  regularType: ts.FreshableType;
@@ -566,8 +579,11 @@ declare const isTruthyBigIntType: (type: ts.Type) => type is ts.LiteralType & {
566
579
  isIndexType: () => this is ts.IndexType;
567
580
  value: ts.PseudoBigInt;
568
581
  };
582
+ /** @internal */
569
583
  declare const isTruthyNumberType: (type: ts.Type) => boolean;
584
+ /** @internal */
570
585
  declare const isTruthyStringType: (type: ts.Type) => boolean;
586
+ /** @internal */
571
587
  declare const isUnknownType: (type: ts.Type) => boolean;
572
588
 
573
589
  type TypeVariant = "any" | "bigint" | "boolean" | "enum" | "never" | "nullish" | "number" | "object" | "string" | "unknown" | "falsy bigint" | "falsy boolean" | "falsy number" | "falsy string" | "truthy bigint" | "truthy boolean" | "truthy number" | "truthy string";
@@ -576,6 +592,7 @@ type TypeVariant = "any" | "bigint" | "boolean" | "enum" | "never" | "nullish" |
576
592
  * Get the variants of an array of types.
577
593
  * @param types The types to get the variants of
578
594
  * @returns The variants of the types
595
+ * @internal
579
596
  */
580
597
  declare function getTypeVariants(types: ts.Type[]): Set<TypeVariant>;
581
598
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "2.0.0-next.123",
3
+ "version": "2.0.0-next.126",
4
4
  "description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -27,18 +27,18 @@
27
27
  "./package.json"
28
28
  ],
29
29
  "dependencies": {
30
- "@typescript-eslint/scope-manager": "^8.38.0",
31
- "@typescript-eslint/type-utils": "^8.38.0",
32
- "@typescript-eslint/types": "^8.38.0",
33
- "@typescript-eslint/utils": "^8.38.0",
30
+ "@typescript-eslint/scope-manager": "^8.39.1",
31
+ "@typescript-eslint/type-utils": "^8.39.1",
32
+ "@typescript-eslint/types": "^8.39.1",
33
+ "@typescript-eslint/utils": "^8.39.1",
34
34
  "birecord": "^0.1.1",
35
35
  "ts-api-utils": "^2.1.0",
36
36
  "ts-pattern": "^5.8.0",
37
- "@eslint-react/ast": "2.0.0-next.123",
38
- "@eslint-react/eff": "2.0.0-next.123",
39
- "@eslint-react/shared": "2.0.0-next.123",
40
- "@eslint-react/var": "2.0.0-next.123",
41
- "@eslint-react/kit": "2.0.0-next.123"
37
+ "@eslint-react/ast": "2.0.0-next.126",
38
+ "@eslint-react/eff": "2.0.0-next.126",
39
+ "@eslint-react/kit": "2.0.0-next.126",
40
+ "@eslint-react/shared": "2.0.0-next.126",
41
+ "@eslint-react/var": "2.0.0-next.126"
42
42
  },
43
43
  "devDependencies": {
44
44
  "tsup": "^8.5.0",