Add the decoratorsAutoAccessors parser plugin (#13681)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
committed by
Nicolò Ribaudo
parent
dc5f419fa9
commit
3f3ce5f668
@@ -7,6 +7,7 @@ import NodePath from "../index";
|
||||
import type { VirtualTypeAliases } from "./virtual-types";
|
||||
|
||||
export interface NodePathValidators {
|
||||
isAccessor(opts?: object): this is NodePath<t.Accessor>;
|
||||
isAnyTypeAnnotation(opts?: object): this is NodePath<t.AnyTypeAnnotation>;
|
||||
isArgumentPlaceholder(opts?: object): this is NodePath<t.ArgumentPlaceholder>;
|
||||
isArrayExpression(opts?: object): this is NodePath<t.ArrayExpression>;
|
||||
@@ -38,6 +39,9 @@ export interface NodePathValidators {
|
||||
isCallExpression(opts?: object): this is NodePath<t.CallExpression>;
|
||||
isCatchClause(opts?: object): this is NodePath<t.CatchClause>;
|
||||
isClass(opts?: object): this is NodePath<t.Class>;
|
||||
isClassAccessorProperty(
|
||||
opts?: object,
|
||||
): this is NodePath<t.ClassAccessorProperty>;
|
||||
isClassBody(opts?: object): this is NodePath<t.ClassBody>;
|
||||
isClassDeclaration(opts?: object): this is NodePath<t.ClassDeclaration>;
|
||||
isClassExpression(opts?: object): this is NodePath<t.ClassExpression>;
|
||||
|
||||
Reference in New Issue
Block a user