ast-types 0.11.1 → 0.11.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.
Files changed (2) hide show
  1. package/def/typescript.js +13 -0
  2. package/package.json +1 -1
package/def/typescript.js CHANGED
@@ -110,6 +110,19 @@ module.exports = function (fork) {
110
110
  .field("types", [def("TSType")]);
111
111
  });
112
112
 
113
+ def("TSConditionalType")
114
+ .bases("TSType")
115
+ .build("checkType", "extendsType", "trueType", "falseType")
116
+ .field("checkType", def("TSType"))
117
+ .field("extendsType", def("TSType"))
118
+ .field("trueType", def("TSType"))
119
+ .field("falseType", def("TSType"));
120
+
121
+ def("TSInferType")
122
+ .bases("TSType")
123
+ .build("typeParameter")
124
+ .field("typeParameter", def("TSType"));
125
+
113
126
  def("TSParenthesizedType")
114
127
  .bases("TSType")
115
128
  .build("typeAnnotation")
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "transformation",
19
19
  "syntax"
20
20
  ],
21
- "version": "0.11.1",
21
+ "version": "0.11.2",
22
22
  "homepage": "http://github.com/benjamn/ast-types",
23
23
  "repository": {
24
24
  "type": "git",