Bladeren bron

Updated @types/estree

sanex 4 jaren geleden
bovenliggende
commit
dfbd8421af

File diff suppressed because it is too large
+ 0 - 0
dist/index.browser.js


File diff suppressed because it is too large
+ 0 - 19336
dist/index.cli.js


File diff suppressed because it is too large
+ 0 - 18276
dist/index.js


+ 1 - 1
package.json

@@ -51,7 +51,7 @@
     "@types/escodegen": "0.0.6",
     "@types/escodegen": "0.0.6",
     "@types/eslint-scope": "3.7.0",
     "@types/eslint-scope": "3.7.0",
     "@types/estraverse": "5.1.0",
     "@types/estraverse": "5.1.0",
-    "@types/estree": "0.0.47",
+    "@types/estree": "0.0.48",
     "@types/js-string-escape": "1.0.0",
     "@types/js-string-escape": "1.0.0",
     "@types/md5": "2.3.0",
     "@types/md5": "2.3.0",
     "@types/mkdirp": "1.0.1",
     "@types/mkdirp": "1.0.1",

+ 1 - 4
src/node-transformers/converting-transformers/MethodAndPropertyDefinitionTransformer.ts

@@ -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 {MethodDefinition | PropertyDefinition} classFieldNode
      * @param {NodeGuards} parentNode
      * @param {NodeGuards} parentNode
      * @returns {NodeGuards}
      * @returns {NodeGuards}
      */
      */
     public transformNode (
     public transformNode (
-        classFieldNode: ESTree.Node & (ESTree.MethodDefinition | ESTree.PropertyDefinition),
+        classFieldNode: ESTree.MethodDefinition | ESTree.PropertyDefinition,
         parentNode: ESTree.Node
         parentNode: ESTree.Node
     ): ESTree.Node {
     ): ESTree.Node {
         if (NodeGuards.isIdentifierNode(classFieldNode.key)) {
         if (NodeGuards.isIdentifierNode(classFieldNode.key)) {

+ 6 - 1
yarn.lock

@@ -603,7 +603,12 @@
   dependencies:
   dependencies:
     "@types/estree" "*"
     "@types/estree" "*"
 
 
-"@types/estree@*", "@types/[email protected]", "@types/estree@^0.0.47":
+"@types/estree@*", "@types/[email protected]":
+  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"
   version "0.0.47"
   resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.47.tgz"
   resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.47.tgz"
   integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg==
   integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg==

Some files were not shown because too many files changed in this diff