ast-types 0.13.1 → 0.13.2
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/def/flow.js +4 -0
- package/gen/builders.d.ts +3 -0
- package/gen/namedTypes.d.ts +2 -0
- package/package.json +3 -3
package/def/flow.js
CHANGED
|
@@ -285,6 +285,10 @@ function default_1(fork) {
|
|
|
285
285
|
.bases("FlowPredicate")
|
|
286
286
|
.build("value")
|
|
287
287
|
.field("value", def("Expression"));
|
|
288
|
+
def("CallExpression")
|
|
289
|
+
.field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults["null"]);
|
|
290
|
+
def("NewExpression")
|
|
291
|
+
.field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults["null"]);
|
|
288
292
|
}
|
|
289
293
|
exports.default = default_1;
|
|
290
294
|
module.exports = exports["default"];
|
package/gen/builders.d.ts
CHANGED
|
@@ -386,6 +386,7 @@ export interface NewExpressionBuilder {
|
|
|
386
386
|
callee: K.ExpressionKind;
|
|
387
387
|
comments?: K.CommentKind[] | null;
|
|
388
388
|
loc?: K.SourceLocationKind | null;
|
|
389
|
+
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
389
390
|
}): namedTypes.NewExpression;
|
|
390
391
|
}
|
|
391
392
|
export interface CallExpressionBuilder {
|
|
@@ -395,6 +396,7 @@ export interface CallExpressionBuilder {
|
|
|
395
396
|
callee: K.ExpressionKind;
|
|
396
397
|
comments?: K.CommentKind[] | null;
|
|
397
398
|
loc?: K.SourceLocationKind | null;
|
|
399
|
+
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
398
400
|
}): namedTypes.CallExpression;
|
|
399
401
|
}
|
|
400
402
|
export interface RestElementBuilder {
|
|
@@ -2311,6 +2313,7 @@ export interface OptionalCallExpressionBuilder {
|
|
|
2311
2313
|
comments?: K.CommentKind[] | null;
|
|
2312
2314
|
loc?: K.SourceLocationKind | null;
|
|
2313
2315
|
optional?: boolean;
|
|
2316
|
+
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
2314
2317
|
}): namedTypes.OptionalCallExpression;
|
|
2315
2318
|
}
|
|
2316
2319
|
export interface builders {
|
package/gen/namedTypes.d.ts
CHANGED
|
@@ -251,11 +251,13 @@ export declare namespace namedTypes {
|
|
|
251
251
|
type: "NewExpression";
|
|
252
252
|
callee: K.ExpressionKind;
|
|
253
253
|
arguments: (K.ExpressionKind | K.SpreadElementKind)[];
|
|
254
|
+
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
254
255
|
}
|
|
255
256
|
interface CallExpression extends Omit<Expression, "type"> {
|
|
256
257
|
type: "CallExpression";
|
|
257
258
|
callee: K.ExpressionKind;
|
|
258
259
|
arguments: (K.ExpressionKind | K.SpreadElementKind)[];
|
|
260
|
+
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
259
261
|
}
|
|
260
262
|
interface RestElement extends Omit<Pattern, "type"> {
|
|
261
263
|
type: "RestElement";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Ben Newman <bn@cs.stanford.edu>",
|
|
3
3
|
"name": "ast-types",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.2",
|
|
5
5
|
"description": "Esprima-compatible implementation of the Mozilla JS Parser API",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ast",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"flow-parser": "0.98.1",
|
|
51
51
|
"glob": "7.1.4",
|
|
52
52
|
"mocha": "6.1.4",
|
|
53
|
-
"recast": "0.
|
|
54
|
-
"reify": "0.
|
|
53
|
+
"recast": "0.18.1",
|
|
54
|
+
"reify": "0.20.6",
|
|
55
55
|
"ts-add-module-exports": "1.0.0",
|
|
56
56
|
"ts-emit-clean": "1.0.0",
|
|
57
57
|
"ts-node": "7.0.1",
|