@babel/types
Advanced tools
Comparing version 7.2.2 to 7.3.0
@@ -217,2 +217,3 @@ "use strict"; | ||
exports.assertTSModuleBlock = assertTSModuleBlock; | ||
exports.assertTSImportType = assertTSImportType; | ||
exports.assertTSImportEqualsDeclaration = assertTSImportEqualsDeclaration; | ||
@@ -1128,2 +1129,6 @@ exports.assertTSExternalModuleReference = assertTSExternalModuleReference; | ||
function assertTSImportType(node, opts = {}) { | ||
assert("TSImportType", node, opts); | ||
} | ||
function assertTSImportEqualsDeclaration(node, opts = {}) { | ||
@@ -1130,0 +1135,0 @@ assert("TSImportEqualsDeclaration", node, opts); |
@@ -217,2 +217,3 @@ "use strict"; | ||
exports.tSModuleBlock = exports.tsModuleBlock = exports.TSModuleBlock = TSModuleBlock; | ||
exports.tSImportType = exports.tsImportType = exports.TSImportType = TSImportType; | ||
exports.tSImportEqualsDeclaration = exports.tsImportEqualsDeclaration = exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration; | ||
@@ -1080,2 +1081,6 @@ exports.tSExternalModuleReference = exports.tsExternalModuleReference = exports.TSExternalModuleReference = TSExternalModuleReference; | ||
function TSImportType(...args) { | ||
return (0, _builder.default)("TSImportType", ...args); | ||
} | ||
function TSImportEqualsDeclaration(...args) { | ||
@@ -1082,0 +1087,0 @@ return (0, _builder.default)("TSImportEqualsDeclaration", ...args); |
@@ -40,2 +40,6 @@ "use strict"; | ||
if (has(node, "optional") && typeof node.optional === "boolean") { | ||
newNode.optional = node.optional; | ||
} | ||
if (has(node, "typeAnnotation")) { | ||
@@ -42,0 +46,0 @@ newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true) : node.typeAnnotation; |
@@ -138,3 +138,3 @@ "use strict"; | ||
fields: { | ||
exprName: (0, _utils.validateType)("TSEntityName") | ||
exprName: (0, _utils.validateType)(["TSEntityName", "TSImportType"]) | ||
} | ||
@@ -328,2 +328,11 @@ }); | ||
}); | ||
(0, _utils.default)("TSImportType", { | ||
aliases: ["TSType"], | ||
visitor: ["argument", "qualifier", "typeParameters"], | ||
fields: { | ||
argument: (0, _utils.validateType)("StringLiteral"), | ||
qualifier: (0, _utils.validateOptionalType)("TSEntityName"), | ||
typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") | ||
} | ||
}); | ||
(0, _utils.default)("TSImportEqualsDeclaration", { | ||
@@ -330,0 +339,0 @@ aliases: ["Statement"], |
{ | ||
"name": "@babel/types", | ||
"version": "7.2.2", | ||
"version": "7.3.0", | ||
"description": "Babel Types is a Lodash-esque utility library for AST nodes", | ||
@@ -17,5 +17,5 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"devDependencies": { | ||
"@babel/generator": "^7.2.2", | ||
"@babel/parser": "^7.2.2" | ||
"@babel/generator": "^7.3.0", | ||
"@babel/parser": "^7.3.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
591200
92
12429