ast-types 0.9.10 → 0.9.14
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/.travis.yml +1 -4
- package/def/es6.js +1 -0
- package/def/flow.js +18 -1
- package/package.json +5 -5
- package/.npmignore +0 -2
package/.travis.yml
CHANGED
package/def/es6.js
CHANGED
package/def/flow.js
CHANGED
|
@@ -116,7 +116,7 @@ module.exports = function (fork) {
|
|
|
116
116
|
def("ObjectTypeAnnotation")
|
|
117
117
|
.bases("Type")
|
|
118
118
|
.build("properties", "indexers", "callProperties")
|
|
119
|
-
.field("properties", [def("ObjectTypeProperty")])
|
|
119
|
+
.field("properties", [or(def("ObjectTypeProperty"), def("ObjectTypeSpreadProperty"))])
|
|
120
120
|
.field("indexers", [def("ObjectTypeIndexer")], defaults.emptyArray)
|
|
121
121
|
.field("callProperties",
|
|
122
122
|
[def("ObjectTypeCallProperty")],
|
|
@@ -186,6 +186,11 @@ module.exports = function (fork) {
|
|
|
186
186
|
.build("argument")
|
|
187
187
|
.field("argument", def("Type"));
|
|
188
188
|
|
|
189
|
+
def("ObjectTypeSpreadProperty")
|
|
190
|
+
.bases("Node")
|
|
191
|
+
.build("argument")
|
|
192
|
+
.field("argument", def("Type"));
|
|
193
|
+
|
|
189
194
|
def("Identifier")
|
|
190
195
|
.field("typeAnnotation", or(def("TypeAnnotation"), null), defaults["null"]);
|
|
191
196
|
|
|
@@ -262,10 +267,22 @@ module.exports = function (fork) {
|
|
|
262
267
|
.field("typeParameters", or(def("TypeParameterDeclaration"), null))
|
|
263
268
|
.field("right", def("Type"));
|
|
264
269
|
|
|
270
|
+
def("OpaqueType")
|
|
271
|
+
.bases("Declaration")
|
|
272
|
+
.build("id", "typeParameters", "impltype", "supertype")
|
|
273
|
+
.field("id", def("Identifier"))
|
|
274
|
+
.field("typeParameters", or(def("TypeParameterDeclaration"), null))
|
|
275
|
+
.field("implType", def("Type"))
|
|
276
|
+
.field("superType", def("Type"));
|
|
277
|
+
|
|
265
278
|
def("DeclareTypeAlias")
|
|
266
279
|
.bases("TypeAlias")
|
|
267
280
|
.build("id", "typeParameters", "right");
|
|
268
281
|
|
|
282
|
+
def("DeclareOpaqueType")
|
|
283
|
+
.bases("TypeAlias")
|
|
284
|
+
.build("id", "typeParameters", "supertype");
|
|
285
|
+
|
|
269
286
|
def("TypeCastExpression")
|
|
270
287
|
.bases("Expression")
|
|
271
288
|
.build("expression", "typeAnnotation")
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"transformation",
|
|
19
19
|
"syntax"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.9.
|
|
21
|
+
"version": "0.9.14",
|
|
22
22
|
"homepage": "http://github.com/benjamn/ast-types",
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"babel-types": "^6.
|
|
34
|
+
"babel-types": "^6.26.0",
|
|
35
35
|
"babylon": "^6.16.1",
|
|
36
36
|
"espree": "^3.1.7",
|
|
37
|
-
"esprima": "~
|
|
37
|
+
"esprima": "~4.0.0",
|
|
38
38
|
"esprima-fb": "~14001.1.0-dev-harmony-fb",
|
|
39
|
-
"mocha": "
|
|
40
|
-
"reify": "^0.
|
|
39
|
+
"mocha": "^3.4.2",
|
|
40
|
+
"reify": "^0.12.0"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">= 0.8"
|
package/.npmignore
DELETED