babel-plugin-typescript-to-flow
Advanced tools
Comparing version 0.15.9 to 0.15.15
@@ -63,3 +63,3 @@ "use strict"; | ||
rest = t.functionTypeParam( | ||
// @ts-ignore todo: | ||
// @ts-expect-error todo: | ||
param.argument, (0, convertTSType_1.convertTSType)(param.typeAnnotation.typeAnnotation)); | ||
@@ -66,0 +66,0 @@ } |
@@ -59,3 +59,2 @@ "use strict"; | ||
const prop = t.objectTypeProperty(key, t.functionTypeAnnotation(typeParams, parameters, rest, returnType ? returnType : t.anyTypeAnnotation())); | ||
// @ts-ignore todo: @babel-types | ||
prop.method = true; | ||
@@ -62,0 +61,0 @@ if (member.optional) { |
@@ -38,3 +38,2 @@ "use strict"; | ||
if (node.readonly) { | ||
// @ts-ignore todo: @babel/types | ||
node.variance = t.variance('plus'); | ||
@@ -41,0 +40,0 @@ node.readonly = null; |
@@ -38,3 +38,2 @@ "use strict"; | ||
const { typeParams, parameters, rest, returnType } = (0, convertFunctionTypeAnnotation_1.convertFunctionTypeAnnotation)(srcDeclaration); | ||
// @ts-expect-error bug in @babel/types | ||
const id = t.identifier(((_a = srcDeclaration === null || srcDeclaration === void 0 ? void 0 : srcDeclaration.id) === null || _a === void 0 ? void 0 : _a.name) || 'fn'); | ||
@@ -41,0 +40,0 @@ id.typeAnnotation = t.typeAnnotation(t.functionTypeAnnotation(typeParams, parameters, rest, returnType ? returnType : t.anyTypeAnnotation())); |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.15.9", | ||
"version": "0.15.15", | ||
"scripts": { | ||
@@ -30,19 +30,19 @@ "cover": "jest --coverage", | ||
"dependencies": { | ||
"@babel/template": "^7.18.6", | ||
"@babel/traverse": "^7.18.8", | ||
"@babel/types": "^7.18.8" | ||
"@babel/template": "^7.18.10", | ||
"@babel/traverse": "^7.18.13", | ||
"@babel/types": "^7.18.13" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.18.6", | ||
"@babel/preset-env": "^7.18.6", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.18.9", | ||
"@babel/preset-env": "^7.18.10", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@flowts/babel-plugin-recast": "^0.15.9", | ||
"@types/babel__traverse": "7.17.1", | ||
"@types/jest": "^28.1.6", | ||
"@zxbodya/recast": "0.21.3", | ||
"jest": "^28.1.3", | ||
"@flowts/babel-plugin-recast": "^0.15.15", | ||
"@types/babel__traverse": "7.18.1", | ||
"@types/jest": "^29.0.0", | ||
"@zxbodya/recast": "0.21.4", | ||
"jest": "^29.0.2", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.8.2" | ||
}, | ||
@@ -55,3 +55,3 @@ "jest": { | ||
}, | ||
"gitHead": "12074b356b3facb1b80a09dd44bb84667d76520c" | ||
"gitHead": "5523d71ba136f4eef9d36d09e25ac3baaf6334e0" | ||
} |
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
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
147385
1810
+ Addedcaniuse-lite@1.0.30001690(transitive)
- Removedcaniuse-lite@1.0.30001692(transitive)
Updated@babel/template@^7.18.10
Updated@babel/traverse@^7.18.13
Updated@babel/types@^7.18.13