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
@@ -6,6 +6,7 @@ import * as t from "@babel/types";
|
||||
import NodePath from "../index";
|
||||
|
||||
export interface NodePathAssetions {
|
||||
assertAccessor(opts?: object): asserts this is NodePath<t.Accessor>;
|
||||
assertAnyTypeAnnotation(
|
||||
opts?: object,
|
||||
): asserts this is NodePath<t.AnyTypeAnnotation>;
|
||||
@@ -61,6 +62,9 @@ export interface NodePathAssetions {
|
||||
): asserts this is NodePath<t.CallExpression>;
|
||||
assertCatchClause(opts?: object): asserts this is NodePath<t.CatchClause>;
|
||||
assertClass(opts?: object): asserts this is NodePath<t.Class>;
|
||||
assertClassAccessorProperty(
|
||||
opts?: object,
|
||||
): asserts this is NodePath<t.ClassAccessorProperty>;
|
||||
assertClassBody(opts?: object): asserts this is NodePath<t.ClassBody>;
|
||||
assertClassDeclaration(
|
||||
opts?: object,
|
||||
|
||||
@@ -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