@@ -39,6 +39,12 @@ export function isCallExpression(node: es.Node): node is es.CallExpression {
39
39
return node . type === "CallExpression" ;
40
40
}
41
41
42
+ export function isExportNamedDeclaration (
43
+ node : es . Node
44
+ ) : node is es . ExportNamedDeclaration {
45
+ return node . type === "ExportNamedDeclaration" ;
46
+ }
47
+
42
48
export function isExpressionStatement (
43
49
node : es . Node
44
50
) : node is es . ExpressionStatement {
@@ -69,6 +75,10 @@ export function isMemberExpression(node: es.Node): node is es.MemberExpression {
69
75
return node . type === "MemberExpression" ;
70
76
}
71
77
78
+ export function isNewExpression ( node : es . Node ) : node is es . NewExpression {
79
+ return node . type === "NewExpression" ;
80
+ }
81
+
72
82
export function isObjectExpression ( node : es . Node ) : node is es . ObjectExpression {
73
83
return node . type === "ObjectExpression" ;
74
84
}
@@ -81,6 +91,10 @@ export function isProgram(node: es.Node): node is es.Program {
81
91
return node . type === "Program" ;
82
92
}
83
93
94
+ export function isProperty ( node : es . Node ) : node is es . Property {
95
+ return node . type === "Property" ;
96
+ }
97
+
84
98
export function isRestElement ( node : es . Node ) : node is es . RestElement {
85
99
return node . type === "RestElement" ;
86
100
}
@@ -89,6 +103,14 @@ export function isThisExpression(node: es.Node): node is es.ThisExpression {
89
103
return node . type === "ThisExpression" ;
90
104
}
91
105
106
+ export function isTSTypeLiteral ( node : es . Node ) : node is es . TSTypeLiteral {
107
+ return node . type === "TSTypeLiteral" ;
108
+ }
109
+
110
+ export function isTSTypeReference ( node : es . Node ) : node is es . TSTypeReference {
111
+ return node . type === "TSTypeReference" ;
112
+ }
113
+
92
114
export function isVariableDeclarator (
93
115
node : es . Node
94
116
) : node is es . VariableDeclarator {
0 commit comments