@react-analyzer/core 0.0.1-next.1 → 0.0.2-next.0
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.ts +17 -1
- package/package.json +4 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
+
import { AST } from 'tsl';
|
|
2
|
+
import { unit } from '@react-analyzer/eff';
|
|
1
3
|
import ts from 'typescript';
|
|
2
4
|
export { isFalseLiteralType, isTrueLiteralType } from 'ts-api-utils';
|
|
3
5
|
|
|
6
|
+
interface SemanticEntry {
|
|
7
|
+
node: AST.AnyNode;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface SemanticNode {
|
|
11
|
+
id: unit | AST.Identifier | AST.Identifier[];
|
|
12
|
+
key: string;
|
|
13
|
+
kind: string;
|
|
14
|
+
name: unit | string;
|
|
15
|
+
node: AST.AnyNode;
|
|
16
|
+
flag: bigint;
|
|
17
|
+
hint: bigint;
|
|
18
|
+
}
|
|
19
|
+
|
|
4
20
|
declare const isAnyType: (type: ts.Type) => boolean;
|
|
5
21
|
declare const isBigIntType: (type: ts.Type) => boolean;
|
|
6
22
|
declare const isBooleanType: (type: ts.Type) => boolean;
|
|
@@ -94,4 +110,4 @@ type Variant = "any" | "bigint" | "boolean" | "enum" | "never" | "nullish" | "nu
|
|
|
94
110
|
*/
|
|
95
111
|
declare function getVariantsOfTypes(types: ts.Type[]): Set<Variant>;
|
|
96
112
|
|
|
97
|
-
export { type Variant, getVariantsOfTypes, isAnyType, isBigIntType, isBooleanType, isEnumType, isFalsyBigIntType, isFalsyNumberType, isFalsyStringType, isNeverType, isNullishType, isNumberType, isObjectType, isStringType, isTruthyBigIntType, isTruthyNumberType, isTruthyStringType, isUnknownType };
|
|
113
|
+
export { type SemanticEntry, type SemanticNode, type Variant, getVariantsOfTypes, isAnyType, isBigIntType, isBooleanType, isEnumType, isFalsyBigIntType, isFalsyNumberType, isFalsyStringType, isNeverType, isNullishType, isNumberType, isObjectType, isStringType, isTruthyBigIntType, isTruthyNumberType, isTruthyStringType, isUnknownType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-analyzer/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-next.0",
|
|
4
4
|
"description": "React Analyzer utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/react-analyzer",
|
|
6
6
|
"bugs": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"ts-pattern": "^5.7.1",
|
|
31
|
-
"@react-analyzer/
|
|
32
|
-
"@react-analyzer/
|
|
31
|
+
"@react-analyzer/kit": "0.0.2-next.0",
|
|
32
|
+
"@react-analyzer/eff": "0.0.2-next.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@tsconfig/node22": "^22.0.2",
|
|
36
|
-
"@types/node": "^24.0.
|
|
36
|
+
"@types/node": "^24.0.13",
|
|
37
37
|
"tsup": "^8.5.0",
|
|
38
38
|
"type-fest": "^4.41.0",
|
|
39
39
|
"@local/configs": "0.0.0"
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup --dts-resolve",
|
|
52
|
-
"build:docs": "typedoc",
|
|
53
52
|
"lint:publish": "publint",
|
|
54
53
|
"lint:ts": "tsl"
|
|
55
54
|
}
|