@babel/types
Advanced tools
Comparing version 7.23.5 to 7.23.6
@@ -1592,3 +1592,3 @@ "use strict"; | ||
} | ||
function tsPropertySignature(key, typeAnnotation = null, initializer = null) { | ||
function tsPropertySignature(key, typeAnnotation = null) { | ||
return (0, _validateNode.default)({ | ||
@@ -1598,3 +1598,2 @@ type: "TSPropertySignature", | ||
typeAnnotation, | ||
initializer, | ||
kind: null | ||
@@ -1601,0 +1600,0 @@ }); |
@@ -1297,3 +1297,3 @@ "use strict"; | ||
validate: (0, _utils.chain)(function () { | ||
const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral"); | ||
const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"); | ||
const computed = (0, _utils.assertNodeType)("Expression"); | ||
@@ -1300,0 +1300,0 @@ return function (node, key, val) { |
@@ -81,7 +81,6 @@ "use strict"; | ||
aliases: ["TSTypeElement"], | ||
visitor: ["key", "typeAnnotation", "initializer"], | ||
visitor: ["key", "typeAnnotation"], | ||
fields: Object.assign({}, namedTypeElementCommon(), { | ||
readonly: (0, _utils.validateOptional)(bool), | ||
typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), | ||
initializer: (0, _utils.validateOptionalType)("Expression"), | ||
kind: { | ||
@@ -88,0 +87,0 @@ validate: (0, _utils.assertOneOf)("get", "set") |
{ | ||
"name": "@babel/types", | ||
"version": "7.23.5", | ||
"version": "7.23.6", | ||
"description": "Babel Types is a Lodash-esque utility library for AST nodes", | ||
@@ -32,4 +32,4 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"devDependencies": { | ||
"@babel/generator": "^7.23.5", | ||
"@babel/parser": "^7.23.5", | ||
"@babel/generator": "^7.23.6", | ||
"@babel/parser": "^7.23.6", | ||
"glob": "^7.2.0" | ||
@@ -36,0 +36,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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 too big to display
Sorry, the diff of this file is not supported yet
2410834
20259