Migrate Babel from Flow to TypeScript (except Babel parser) (#11578)

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
Bogdan Savluk
2021-11-25 23:09:13 +01:00
committed by GitHub
parent 473f145b27
commit 0058b7fef4
162 changed files with 672 additions and 133 deletions

View File

@@ -12,7 +12,7 @@ export default declare(api => {
ObjectExpression(path, file) {
const { node } = path;
let hasAny = false;
for (const prop of (node.properties: Array)) {
for (const prop of node.properties) {
if (prop.kind === "get" || prop.kind === "set") {
hasAny = true;
break;