Updated @types/estree

This commit is contained in:
sanex
2021-06-02 09:10:52 +03:00
parent 6d70a5abcf
commit dfbd8421af
6 changed files with 13 additions and 38054 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -19591
View File
File diff suppressed because one or more lines are too long
+2 -18456
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -51,7 +51,7 @@
"@types/escodegen": "0.0.6",
"@types/eslint-scope": "3.7.0",
"@types/estraverse": "5.1.0",
"@types/estree": "0.0.47",
"@types/estree": "0.0.48",
"@types/js-string-escape": "1.0.0",
"@types/md5": "2.3.0",
"@types/mkdirp": "1.0.1",
@@ -70,15 +70,12 @@ export class MethodAndPropertyDefinitionTransformer extends AbstractNodeTransfor
}
/**
* TODO: remove all casts after @types/estree update
* TODO: make `classFieldNode` types just as `ESTree.MethodDefinition | ESTree.PropertyDefinition`
*
* @param {MethodDefinition | PropertyDefinition} classFieldNode
* @param {NodeGuards} parentNode
* @returns {NodeGuards}
*/
public transformNode (
classFieldNode: ESTree.Node & (ESTree.MethodDefinition | ESTree.PropertyDefinition),
classFieldNode: ESTree.MethodDefinition | ESTree.PropertyDefinition,
parentNode: ESTree.Node
): ESTree.Node {
if (NodeGuards.isIdentifierNode(classFieldNode.key)) {
+6 -1
View File
@@ -603,7 +603,12 @@
dependencies:
"@types/estree" "*"
"@types/estree@*", "@types/estree@0.0.47", "@types/estree@^0.0.47":
"@types/estree@*", "@types/estree@0.0.48":
version "0.0.48"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.48.tgz#18dc8091b285df90db2f25aa7d906cfc394b7f74"
integrity sha512-LfZwXoGUDo0C3me81HXgkBg5CTQYb6xzEl+fNmbO4JdRiSKQ8A0GD1OBBvKAIsbCUgoyAty7m99GqqMQe784ew==
"@types/estree@^0.0.47":
version "0.0.47"
resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.47.tgz"
integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg==