yuku-ast 0.0.4 → 0.1.1
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 +3 -3
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -408,7 +408,7 @@ declare const b: {
|
|
|
408
408
|
decorator(expression: t.Expression): t.Decorator;
|
|
409
409
|
expressionStatement(expression: t.Expression): t.ExpressionStatement;
|
|
410
410
|
directive(value: string): t.Directive;
|
|
411
|
-
blockStatement(body?: t.Statement
|
|
411
|
+
blockStatement(body?: Array<t.Statement | t.Directive>): t.BlockStatement;
|
|
412
412
|
emptyStatement(): t.EmptyStatement;
|
|
413
413
|
debuggerStatement(): t.DebuggerStatement;
|
|
414
414
|
returnStatement(argument?: t.Expression | null): t.ReturnStatement;
|
|
@@ -569,7 +569,7 @@ declare const b: {
|
|
|
569
569
|
declare?: boolean;
|
|
570
570
|
global?: boolean;
|
|
571
571
|
}): t.TSModuleDeclaration;
|
|
572
|
-
tsModuleBlock(body?: t.
|
|
572
|
+
tsModuleBlock(body?: t.ProgramStatement[]): t.TSModuleBlock;
|
|
573
573
|
tsParameterProperty(parameter: t.BindingIdentifier | t.AssignmentPattern, opts?: {
|
|
574
574
|
accessibility?: t.TSAccessibility | null;
|
|
575
575
|
readonly?: boolean;
|
|
@@ -598,7 +598,7 @@ declare const b: {
|
|
|
598
598
|
typeParameters?: t.TSTypeParameterDeclaration | null;
|
|
599
599
|
}): t.TSEmptyBodyFunctionExpression;
|
|
600
600
|
hashbang(value: string): t.Hashbang;
|
|
601
|
-
program(body?:
|
|
601
|
+
program(body?: t.ProgramStatement[], opts?: {
|
|
602
602
|
sourceType?: t.ModuleKind;
|
|
603
603
|
hashbang?: t.Hashbang | null;
|
|
604
604
|
}): t.Program;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuku-ast",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A fast, typed AST toolkit for yuku-parser's ESTree / TypeScript-ESTree AST: node builders, type guards, a walker, and identifier validators.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ast",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"oxlint": "^1.66.0",
|
|
48
48
|
"tsdown": "^0.22.0",
|
|
49
49
|
"typescript": "^6.0.3",
|
|
50
|
-
"yuku-codegen": "^0.5.
|
|
51
|
-
"yuku-parser": "^0.5.
|
|
50
|
+
"yuku-codegen": "^0.5.18",
|
|
51
|
+
"yuku-parser": "^0.5.18"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"yuku-parser": "
|
|
54
|
+
"yuku-parser": ">=0.5.18"
|
|
55
55
|
}
|
|
56
56
|
}
|