babel-plugin-typescript-to-flow
Advanced tools
Comparing version 0.11.5 to 0.11.7
@@ -68,2 +68,3 @@ "use strict"; | ||
: t.anyTypeAnnotation()); | ||
// @ts-expect-error todo: @babel/types | ||
prop.static = member.static; | ||
@@ -91,2 +92,3 @@ prop.optional = !!member.optional; | ||
: t.anyTypeAnnotation())); | ||
// @ts-expect-error todo: @babel/types | ||
prop.static = member.static; | ||
@@ -93,0 +95,0 @@ prop.kind = |
@@ -24,3 +24,3 @@ "use strict"; | ||
const t = __importStar(require("@babel/types")); | ||
const convertFunctionTypeAnnotation_1 = require("../converters/convertFunctionTypeAnnotation"); | ||
const convertFunctionTypeAnnotation_1 = require("./convertFunctionTypeAnnotation"); | ||
function convertTSDeclareFunction(node) { | ||
@@ -27,0 +27,0 @@ const { typeParams, parameters, rest, returnType, } = convertFunctionTypeAnnotation_1.convertFunctionTypeAnnotation(node); |
@@ -33,3 +33,2 @@ "use strict"; | ||
}; | ||
// tslint:disable-next-line:no-any | ||
exports.default = (_babel, opts = {}) => { | ||
@@ -36,0 +35,0 @@ if (typeof opts.isJSX === 'undefined') { |
@@ -59,5 +59,5 @@ "use strict"; | ||
} | ||
// @ts-expect-error todo: @babel/types | ||
replacement.static = node.static; | ||
replacement.optional = !!node.optional; | ||
// @ts-ignore todo: @babel/types | ||
replacement.method = true; | ||
@@ -64,0 +64,0 @@ elementPath.replaceWith(replacement); |
@@ -5,3 +5,2 @@ "use strict"; | ||
const traverse_1 = require("@babel/traverse"); | ||
// tslint:disable-next-line:no-any | ||
function replaceWith(path, replacement) { | ||
@@ -8,0 +7,0 @@ if (replacement instanceof traverse_1.NodePath) { |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.11.5", | ||
"version": "0.11.7", | ||
"scripts": { | ||
@@ -32,4 +32,4 @@ "cover": "jest --coverage", | ||
"@babel/template": "^7.12.7", | ||
"@babel/traverse": "^7.12.7", | ||
"@babel/types": "^7.12.7" | ||
"@babel/traverse": "^7.12.10", | ||
"@babel/types": "^7.12.11" | ||
}, | ||
@@ -39,16 +39,16 @@ "devDependencies": { | ||
"@babel/plugin-proposal-object-rest-spread": "^7.12.1", | ||
"@babel/preset-env": "^7.12.7", | ||
"@babel/preset-env": "^7.12.11", | ||
"@babel/preset-typescript": "^7.12.7", | ||
"@types/babel__traverse": "7.0.15", | ||
"@types/jest": "^26.0.15", | ||
"@typescript-eslint/eslint-plugin": "^4.8.1", | ||
"@typescript-eslint/parser": "^4.8.1", | ||
"@types/babel__traverse": "7.11.0", | ||
"@types/jest": "^26.0.19", | ||
"@typescript-eslint/eslint-plugin": "^4.11.0", | ||
"@typescript-eslint/parser": "^4.11.0", | ||
"@zxbodya/recast": "^0.18.9", | ||
"codecov": "^3.8.1", | ||
"eslint": "^7.14.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint": "^7.16.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.0", | ||
"prettier": "^2.2.1", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.1.2" | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -61,3 +61,3 @@ "jest": { | ||
}, | ||
"gitHead": "1105aeb3e07aef08b9a454b288c0e4259982b940" | ||
"gitHead": "88f549cf24cfbcbb55e31456ab538903dff83bf6" | ||
} |
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 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 not supported yet
Sorry, the diff of this file is not supported yet
147362
Updated@babel/traverse@^7.12.10
Updated@babel/types@^7.12.11