ast-types 0.14.0 → 0.14.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/def/flow.js +2 -4
- package/gen/builders.d.ts +1 -1
- package/gen/namedTypes.d.ts +2 -2
- package/package.json +3 -3
package/def/flow.js
CHANGED
|
@@ -121,9 +121,6 @@ function default_1(fork) {
|
|
|
121
121
|
.field("inexact", or(Boolean, void 0), defaults["undefined"])
|
|
122
122
|
.field("exact", Boolean, defaults["false"])
|
|
123
123
|
.field("internalSlots", [def("ObjectTypeInternalSlot")], defaults.emptyArray);
|
|
124
|
-
def("ObjectTypeIndexer")
|
|
125
|
-
.field("id", or(def("Identifier"), null))
|
|
126
|
-
.field("static", Boolean);
|
|
127
124
|
def("Variance")
|
|
128
125
|
.bases("Node")
|
|
129
126
|
.build("kind")
|
|
@@ -142,7 +139,8 @@ function default_1(fork) {
|
|
|
142
139
|
.field("id", def("Identifier"))
|
|
143
140
|
.field("key", def("FlowType"))
|
|
144
141
|
.field("value", def("FlowType"))
|
|
145
|
-
.field("variance", LegacyVariance, defaults["null"])
|
|
142
|
+
.field("variance", LegacyVariance, defaults["null"])
|
|
143
|
+
.field("static", Boolean, defaults["false"]);
|
|
146
144
|
def("ObjectTypeCallProperty")
|
|
147
145
|
.bases("Node")
|
|
148
146
|
.build("value")
|
package/gen/builders.d.ts
CHANGED
|
@@ -1248,7 +1248,7 @@ export interface ObjectTypeIndexerBuilder {
|
|
|
1248
1248
|
id: K.IdentifierKind;
|
|
1249
1249
|
key: K.FlowTypeKind;
|
|
1250
1250
|
loc?: K.SourceLocationKind | null;
|
|
1251
|
-
static
|
|
1251
|
+
static?: boolean;
|
|
1252
1252
|
value: K.FlowTypeKind;
|
|
1253
1253
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1254
1254
|
}): namedTypes.ObjectTypeIndexer;
|
package/gen/namedTypes.d.ts
CHANGED
|
@@ -712,12 +712,12 @@ export declare namespace namedTypes {
|
|
|
712
712
|
argument: K.FlowTypeKind;
|
|
713
713
|
}
|
|
714
714
|
interface ObjectTypeIndexer extends Omit<Node, "type"> {
|
|
715
|
-
id: K.IdentifierKind;
|
|
716
|
-
static: boolean;
|
|
717
715
|
type: "ObjectTypeIndexer";
|
|
716
|
+
id: K.IdentifierKind;
|
|
718
717
|
key: K.FlowTypeKind;
|
|
719
718
|
value: K.FlowTypeKind;
|
|
720
719
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
720
|
+
static?: boolean;
|
|
721
721
|
}
|
|
722
722
|
interface ObjectTypeCallProperty extends Omit<Node, "type"> {
|
|
723
723
|
type: "ObjectTypeCallProperty";
|
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.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"description": "Esprima-compatible implementation of the Mozilla JS Parser API",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ast",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"tslib": "^2.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/parser": "7.
|
|
43
|
+
"@babel/parser": "7.11.4",
|
|
44
44
|
"@babel/types": "7.4.4",
|
|
45
45
|
"@types/esprima": "4.0.2",
|
|
46
46
|
"@types/glob": "7.1.3",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"flow-parser": "0.132.0",
|
|
53
53
|
"glob": "7.1.6",
|
|
54
54
|
"mocha": "^8.1.1",
|
|
55
|
-
"recast": "0.20.
|
|
55
|
+
"recast": "0.20.1",
|
|
56
56
|
"reify": "0.20.12",
|
|
57
57
|
"ts-add-module-exports": "1.0.0",
|
|
58
58
|
"ts-emit-clean": "1.0.0",
|