refactor: move @babel/helper-bindify-decorators to ts (#12416)

This commit is contained in:
Huáng Jùnliàng 2021-01-27 08:23:21 -05:00 committed by GitHub
parent fbfd1b2aa6
commit 463cb332aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,8 @@ import type { NodePath } from "@babel/traverse";
import * as t from "@babel/types";
export default function bindifyDecorators(
decorators: Array<NodePath>,
): Array<NodePath> {
decorators: ReadonlyArray<NodePath<t.Decorator>>,
): void {
for (const decoratorPath of decorators) {
const decorator = decoratorPath.node;
const expression = decorator.expression;