@stylexjs/babel-plugin 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3758 -2215
- package/lib/index.js.flow +11 -1
- package/lib/shared/common-types.d.ts +57 -0
- package/lib/shared/common-types.js.flow +71 -0
- package/lib/shared/hash.d.ts +12 -0
- package/lib/shared/hash.js.flow +12 -0
- package/lib/shared/index.d.ts +57 -0
- package/lib/shared/index.js.flow +66 -0
- package/lib/shared/messages.d.ts +35 -0
- package/lib/shared/messages.js.flow +40 -0
- package/lib/shared/physical-rtl/generate-ltr.d.ts +13 -0
- package/lib/shared/physical-rtl/generate-ltr.js.flow +12 -0
- package/lib/shared/physical-rtl/generate-rtl.d.ts +13 -0
- package/lib/shared/physical-rtl/generate-rtl.js.flow +12 -0
- package/lib/shared/preprocess-rules/PreRule.d.ts +51 -0
- package/lib/shared/preprocess-rules/PreRule.js.flow +63 -0
- package/lib/shared/preprocess-rules/application-order.d.ts +183 -0
- package/lib/shared/preprocess-rules/application-order.js.flow +134 -0
- package/lib/shared/preprocess-rules/basic-validation.d.ts +13 -0
- package/lib/shared/preprocess-rules/basic-validation.js.flow +13 -0
- package/lib/shared/preprocess-rules/flatten-raw-style-obj.d.ts +20 -0
- package/lib/shared/preprocess-rules/flatten-raw-style-obj.js.flow +23 -0
- package/lib/shared/preprocess-rules/index.d.ts +18 -0
- package/lib/shared/preprocess-rules/index.js.flow +22 -0
- package/lib/shared/preprocess-rules/legacy-expand-shorthands.d.ts +165 -0
- package/lib/shared/preprocess-rules/legacy-expand-shorthands.js.flow +144 -0
- package/lib/shared/preprocess-rules/property-specificity.d.ts +78 -0
- package/lib/shared/preprocess-rules/property-specificity.js.flow +87 -0
- package/lib/shared/stylex-consts-utils.d.ts +11 -0
- package/lib/shared/stylex-consts-utils.js.flow +14 -0
- package/lib/shared/stylex-create-theme.d.ts +26 -0
- package/lib/shared/stylex-create-theme.js.flow +19 -0
- package/lib/shared/stylex-create.d.ts +27 -0
- package/lib/shared/stylex-create.js.flow +37 -0
- package/lib/shared/stylex-define-consts.d.ts +23 -0
- package/lib/shared/stylex-define-consts.js.flow +19 -0
- package/lib/shared/stylex-define-vars.d.ts +28 -0
- package/lib/shared/stylex-define-vars.js.flow +26 -0
- package/lib/shared/stylex-first-that-works.d.ts +13 -0
- package/lib/shared/stylex-first-that-works.js.flow +12 -0
- package/lib/shared/stylex-keyframes.d.ts +17 -0
- package/lib/shared/stylex-keyframes.js.flow +20 -0
- package/lib/shared/stylex-position-try.d.ts +15 -0
- package/lib/shared/stylex-position-try.js.flow +18 -0
- package/lib/shared/stylex-vars-utils.d.ts +27 -0
- package/lib/shared/stylex-vars-utils.js.flow +31 -0
- package/lib/shared/types/index.d.ts +240 -0
- package/lib/shared/types/index.js.flow +280 -0
- package/lib/shared/utils/Rule.d.ts +58 -0
- package/lib/shared/utils/Rule.js.flow +64 -0
- package/lib/shared/utils/convert-to-className.d.ts +21 -0
- package/lib/shared/utils/convert-to-className.js.flow +29 -0
- package/lib/shared/utils/dashify.d.ts +11 -0
- package/lib/shared/utils/dashify.js.flow +10 -0
- package/lib/shared/utils/default-options.d.ts +11 -0
- package/lib/shared/utils/default-options.js.flow +12 -0
- package/lib/shared/utils/file-based-identifier.d.ts +15 -0
- package/lib/shared/utils/file-based-identifier.js.flow +14 -0
- package/lib/shared/utils/generate-css-rule.d.ts +18 -0
- package/lib/shared/utils/generate-css-rule.js.flow +19 -0
- package/lib/shared/utils/normalize-value.d.ts +16 -0
- package/lib/shared/utils/normalize-value.js.flow +16 -0
- package/lib/shared/utils/normalizers/convert-camel-case-values.d.ts +14 -0
- package/lib/shared/utils/normalizers/convert-camel-case-values.js.flow +13 -0
- package/lib/shared/utils/normalizers/detect-unclosed-fns.d.ts +17 -0
- package/lib/shared/utils/normalizers/detect-unclosed-fns.js.flow +16 -0
- package/lib/shared/utils/normalizers/font-size-px-to-rem.d.ts +19 -0
- package/lib/shared/utils/normalizers/font-size-px-to-rem.js.flow +18 -0
- package/lib/shared/utils/normalizers/leading-zero.d.ts +17 -0
- package/lib/shared/utils/normalizers/leading-zero.js.flow +16 -0
- package/lib/shared/utils/normalizers/quotes.d.ts +18 -0
- package/lib/shared/utils/normalizers/quotes.js.flow +17 -0
- package/lib/shared/utils/normalizers/timings.d.ts +18 -0
- package/lib/shared/utils/normalizers/timings.js.flow +17 -0
- package/lib/shared/utils/normalizers/whitespace.d.ts +19 -0
- package/lib/shared/utils/normalizers/whitespace.js.flow +18 -0
- package/lib/shared/utils/normalizers/zero-dimensions.d.ts +19 -0
- package/lib/shared/utils/normalizers/zero-dimensions.js.flow +18 -0
- package/lib/shared/utils/object-utils.d.ts +66 -0
- package/lib/shared/utils/object-utils.js.flow +78 -0
- package/lib/shared/utils/property-priorities.d.ts +17 -0
- package/lib/shared/utils/property-priorities.js.flow +78 -0
- package/lib/shared/utils/rule-utils.d.ts +15 -0
- package/lib/shared/utils/rule-utils.js.flow +16 -0
- package/lib/shared/utils/split-css-value.d.ts +14 -0
- package/lib/shared/utils/split-css-value.js.flow +15 -0
- package/lib/shared/utils/transform-value.d.ts +22 -0
- package/lib/shared/utils/transform-value.js.flow +25 -0
- package/lib/shared/validate.d.ts +12 -0
- package/lib/shared/validate.js.flow +12 -0
- package/lib/utils/add-sourcemap-data.d.ts +1 -1
- package/lib/utils/add-sourcemap-data.js.flow +1 -1
- package/lib/utils/dev-classname.d.ts +1 -1
- package/lib/utils/dev-classname.js.flow +2 -1
- package/lib/utils/evaluate-path.d.ts +14 -0
- package/lib/utils/evaluate-path.js.flow +15 -0
- package/lib/utils/js-to-ast.d.ts +1 -1
- package/lib/utils/js-to-ast.js.flow +1 -1
- package/lib/utils/state-manager.d.ts +34 -6
- package/lib/utils/state-manager.js.flow +34 -5
- package/lib/visitors/imports.d.ts +1 -1
- package/lib/visitors/imports.js.flow +2 -1
- package/lib/visitors/{stylex-create/parse-stylex-create-arg.d.ts → parse-stylex-create-arg.d.ts} +2 -2
- package/lib/visitors/{stylex-create/parse-stylex-create-arg.js.flow → parse-stylex-create-arg.js.flow} +5 -4
- package/lib/visitors/stylex-create-theme.d.ts +1 -1
- package/lib/visitors/stylex-create-theme.js.flow +1 -1
- package/lib/visitors/{stylex-create/index.d.ts → stylex-create.d.ts} +2 -2
- package/lib/visitors/{stylex-create/index.js.flow → stylex-create.js.flow} +3 -3
- package/lib/visitors/stylex-define-consts.d.ts +1 -14
- package/lib/visitors/stylex-define-consts.js.flow +9 -14
- package/lib/visitors/stylex-define-vars.d.ts +1 -1
- package/lib/visitors/stylex-define-vars.js.flow +1 -1
- package/lib/visitors/stylex-keyframes.d.ts +1 -1
- package/lib/visitors/stylex-keyframes.js.flow +1 -1
- package/lib/visitors/{stylex-attrs.d.ts → stylex-position-try.d.ts} +3 -7
- package/lib/visitors/stylex-position-try.js.flow +22 -0
- package/package.json +7 -11
- package/lib/babel-path-utils.d.ts +0 -1100
- package/lib/babel-path-utils.js.flow +0 -1108
- package/lib/visitors/stylex-attrs.js.flow +0 -25
|
@@ -1,1100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import type { NodePath } from '@babel/traverse';
|
|
11
|
-
import * as t from '@babel/types';
|
|
12
|
-
|
|
13
|
-
export declare function isAnyTypeAnnotation(
|
|
14
|
-
path: NodePath,
|
|
15
|
-
props?: object | null,
|
|
16
|
-
): path is NodePath<t.AnyTypeAnnotation>;
|
|
17
|
-
export declare function isArrayExpression(
|
|
18
|
-
path: NodePath,
|
|
19
|
-
props?: object | null,
|
|
20
|
-
): path is NodePath<t.ArrayExpression>;
|
|
21
|
-
export declare function isArrayPattern(
|
|
22
|
-
path: NodePath,
|
|
23
|
-
props?: object | null,
|
|
24
|
-
): path is NodePath<t.ArrayPattern>;
|
|
25
|
-
export declare function isArrayTypeAnnotation(
|
|
26
|
-
path: NodePath,
|
|
27
|
-
props?: object | null,
|
|
28
|
-
): path is NodePath<t.ArrayTypeAnnotation>;
|
|
29
|
-
export declare function isArrowFunctionExpression(
|
|
30
|
-
path: NodePath,
|
|
31
|
-
props?: object | null,
|
|
32
|
-
): path is NodePath<t.ArrowFunctionExpression>;
|
|
33
|
-
export declare function isAssignmentExpression(
|
|
34
|
-
path: NodePath,
|
|
35
|
-
props?: object | null,
|
|
36
|
-
): path is NodePath<t.AssignmentExpression>;
|
|
37
|
-
export declare function isAssignmentPattern(
|
|
38
|
-
path: NodePath,
|
|
39
|
-
props?: object | null,
|
|
40
|
-
): path is NodePath<t.AssignmentPattern>;
|
|
41
|
-
export declare function isAwaitExpression(
|
|
42
|
-
path: NodePath,
|
|
43
|
-
props?: object | null,
|
|
44
|
-
): path is NodePath<t.AwaitExpression>;
|
|
45
|
-
export declare function isBigIntLiteral(
|
|
46
|
-
path: NodePath,
|
|
47
|
-
props?: object | null,
|
|
48
|
-
): path is NodePath<t.BigIntLiteral>;
|
|
49
|
-
export declare function isBinary(
|
|
50
|
-
path: NodePath,
|
|
51
|
-
props?: object | null,
|
|
52
|
-
): path is NodePath<t.Binary>;
|
|
53
|
-
export declare function isBinaryExpression(
|
|
54
|
-
path: NodePath,
|
|
55
|
-
props?: object | null,
|
|
56
|
-
): path is NodePath<t.BinaryExpression>;
|
|
57
|
-
export declare function isBindExpression(
|
|
58
|
-
path: NodePath,
|
|
59
|
-
props?: object | null,
|
|
60
|
-
): path is NodePath<t.BindExpression>;
|
|
61
|
-
export declare function isBlock(
|
|
62
|
-
path: NodePath,
|
|
63
|
-
props?: object | null,
|
|
64
|
-
): path is NodePath<t.Block>;
|
|
65
|
-
export declare function isBlockParent(
|
|
66
|
-
path: NodePath,
|
|
67
|
-
props?: object | null,
|
|
68
|
-
): path is NodePath<t.BlockParent>;
|
|
69
|
-
export declare function isBlockStatement(
|
|
70
|
-
path: NodePath,
|
|
71
|
-
props?: object | null,
|
|
72
|
-
): path is NodePath<t.BlockStatement>;
|
|
73
|
-
export declare function isBooleanLiteral(
|
|
74
|
-
path: NodePath,
|
|
75
|
-
props?: object | null,
|
|
76
|
-
): path is NodePath<t.BooleanLiteral>;
|
|
77
|
-
export declare function isBooleanLiteralTypeAnnotation(
|
|
78
|
-
path: NodePath,
|
|
79
|
-
props?: object | null,
|
|
80
|
-
): path is NodePath<t.BooleanLiteralTypeAnnotation>;
|
|
81
|
-
export declare function isBooleanTypeAnnotation(
|
|
82
|
-
path: NodePath,
|
|
83
|
-
props?: object | null,
|
|
84
|
-
): path is NodePath<t.BooleanTypeAnnotation>;
|
|
85
|
-
export declare function isBreakStatement(
|
|
86
|
-
path: NodePath,
|
|
87
|
-
props?: object | null,
|
|
88
|
-
): path is NodePath<t.BreakStatement>;
|
|
89
|
-
export declare function isCallExpression(
|
|
90
|
-
path: NodePath,
|
|
91
|
-
props?: object | null,
|
|
92
|
-
): path is NodePath<t.CallExpression>;
|
|
93
|
-
export declare function isCatchClause(
|
|
94
|
-
path: NodePath,
|
|
95
|
-
props?: object | null,
|
|
96
|
-
): path is NodePath<t.CatchClause>;
|
|
97
|
-
export declare function isClass(
|
|
98
|
-
path: NodePath,
|
|
99
|
-
props?: object | null,
|
|
100
|
-
): path is NodePath<t.Class>;
|
|
101
|
-
export declare function isClassBody(
|
|
102
|
-
path: NodePath,
|
|
103
|
-
props?: object | null,
|
|
104
|
-
): path is NodePath<t.ClassBody>;
|
|
105
|
-
export declare function isClassDeclaration(
|
|
106
|
-
path: NodePath,
|
|
107
|
-
props?: object | null,
|
|
108
|
-
): path is NodePath<t.ClassDeclaration>;
|
|
109
|
-
export declare function isClassExpression(
|
|
110
|
-
path: NodePath,
|
|
111
|
-
props?: object | null,
|
|
112
|
-
): path is NodePath<t.ClassExpression>;
|
|
113
|
-
export declare function isClassImplements(
|
|
114
|
-
path: NodePath,
|
|
115
|
-
props?: object | null,
|
|
116
|
-
): path is NodePath<t.ClassImplements>;
|
|
117
|
-
export declare function isClassMethod(
|
|
118
|
-
path: NodePath,
|
|
119
|
-
props?: object | null,
|
|
120
|
-
): path is NodePath<t.ClassMethod>;
|
|
121
|
-
export declare function isClassPrivateMethod(
|
|
122
|
-
path: NodePath,
|
|
123
|
-
props?: object | null,
|
|
124
|
-
): path is NodePath<t.ClassPrivateMethod>;
|
|
125
|
-
export declare function isClassPrivateProperty(
|
|
126
|
-
path: NodePath,
|
|
127
|
-
props?: object | null,
|
|
128
|
-
): path is NodePath<t.ClassPrivateProperty>;
|
|
129
|
-
export declare function isClassProperty(
|
|
130
|
-
path: NodePath,
|
|
131
|
-
props?: object | null,
|
|
132
|
-
): path is NodePath<t.ClassProperty>;
|
|
133
|
-
export declare function isCompletionStatement(
|
|
134
|
-
path: NodePath,
|
|
135
|
-
props?: object | null,
|
|
136
|
-
): path is NodePath<t.CompletionStatement>;
|
|
137
|
-
export declare function isConditional(
|
|
138
|
-
path: NodePath,
|
|
139
|
-
props?: object | null,
|
|
140
|
-
): path is NodePath<t.Conditional>;
|
|
141
|
-
export declare function isConditionalExpression(
|
|
142
|
-
path: NodePath,
|
|
143
|
-
props?: object | null,
|
|
144
|
-
): path is NodePath<t.ConditionalExpression>;
|
|
145
|
-
export declare function isContinueStatement(
|
|
146
|
-
path: NodePath,
|
|
147
|
-
props?: object | null,
|
|
148
|
-
): path is NodePath<t.ContinueStatement>;
|
|
149
|
-
export declare function isDebuggerStatement(
|
|
150
|
-
path: NodePath,
|
|
151
|
-
props?: object | null,
|
|
152
|
-
): path is NodePath<t.DebuggerStatement>;
|
|
153
|
-
export declare function isDeclaration(
|
|
154
|
-
path: NodePath,
|
|
155
|
-
props?: object | null,
|
|
156
|
-
): path is NodePath<t.Declaration>;
|
|
157
|
-
export declare function isDeclareClass(
|
|
158
|
-
path: NodePath,
|
|
159
|
-
props?: object | null,
|
|
160
|
-
): path is NodePath<t.DeclareClass>;
|
|
161
|
-
export declare function isDeclareExportAllDeclaration(
|
|
162
|
-
path: NodePath,
|
|
163
|
-
props?: object | null,
|
|
164
|
-
): path is NodePath<t.DeclareExportAllDeclaration>;
|
|
165
|
-
export declare function isDeclareExportDeclaration(
|
|
166
|
-
path: NodePath,
|
|
167
|
-
props?: object | null,
|
|
168
|
-
): path is NodePath<t.DeclareExportDeclaration>;
|
|
169
|
-
export declare function isDeclareFunction(
|
|
170
|
-
path: NodePath,
|
|
171
|
-
props?: object | null,
|
|
172
|
-
): path is NodePath<t.DeclareFunction>;
|
|
173
|
-
export declare function isDeclareInterface(
|
|
174
|
-
path: NodePath,
|
|
175
|
-
props?: object | null,
|
|
176
|
-
): path is NodePath<t.DeclareInterface>;
|
|
177
|
-
export declare function isDeclareModule(
|
|
178
|
-
path: NodePath,
|
|
179
|
-
props?: object | null,
|
|
180
|
-
): path is NodePath<t.DeclareModule>;
|
|
181
|
-
export declare function isDeclareModuleExports(
|
|
182
|
-
path: NodePath,
|
|
183
|
-
props?: object | null,
|
|
184
|
-
): path is NodePath<t.DeclareModuleExports>;
|
|
185
|
-
export declare function isDeclareOpaqueType(
|
|
186
|
-
path: NodePath,
|
|
187
|
-
props?: object | null,
|
|
188
|
-
): path is NodePath<t.DeclareOpaqueType>;
|
|
189
|
-
export declare function isDeclareTypeAlias(
|
|
190
|
-
path: NodePath,
|
|
191
|
-
props?: object | null,
|
|
192
|
-
): path is NodePath<t.DeclareTypeAlias>;
|
|
193
|
-
export declare function isDeclareVariable(
|
|
194
|
-
path: NodePath,
|
|
195
|
-
props?: object | null,
|
|
196
|
-
): path is NodePath<t.DeclareVariable>;
|
|
197
|
-
export declare function isDeclaredPredicate(
|
|
198
|
-
path: NodePath,
|
|
199
|
-
props?: object | null,
|
|
200
|
-
): path is NodePath<t.DeclaredPredicate>;
|
|
201
|
-
export declare function isDecorator(
|
|
202
|
-
path: NodePath,
|
|
203
|
-
props?: object | null,
|
|
204
|
-
): path is NodePath<t.Decorator>;
|
|
205
|
-
export declare function isDirective(
|
|
206
|
-
path: NodePath,
|
|
207
|
-
props?: object | null,
|
|
208
|
-
): path is NodePath<t.Directive>;
|
|
209
|
-
export declare function isDirectiveLiteral(
|
|
210
|
-
path: NodePath,
|
|
211
|
-
props?: object | null,
|
|
212
|
-
): path is NodePath<t.DirectiveLiteral>;
|
|
213
|
-
export declare function isDoExpression(
|
|
214
|
-
path: NodePath,
|
|
215
|
-
props?: object | null,
|
|
216
|
-
): path is NodePath<t.DoExpression>;
|
|
217
|
-
export declare function isDoWhileStatement(
|
|
218
|
-
path: NodePath,
|
|
219
|
-
props?: object | null,
|
|
220
|
-
): path is NodePath<t.DoWhileStatement>;
|
|
221
|
-
export declare function isEmptyStatement(
|
|
222
|
-
path: NodePath,
|
|
223
|
-
props?: object | null,
|
|
224
|
-
): path is NodePath<t.EmptyStatement>;
|
|
225
|
-
export declare function isEmptyTypeAnnotation(
|
|
226
|
-
path: NodePath,
|
|
227
|
-
props?: object | null,
|
|
228
|
-
): path is NodePath<t.EmptyTypeAnnotation>;
|
|
229
|
-
export declare function isExistsTypeAnnotation(
|
|
230
|
-
path: NodePath,
|
|
231
|
-
props?: object | null,
|
|
232
|
-
): path is NodePath<t.ExistsTypeAnnotation>;
|
|
233
|
-
export declare function isExportAllDeclaration(
|
|
234
|
-
path: NodePath,
|
|
235
|
-
props?: object | null,
|
|
236
|
-
): path is NodePath<t.ExportAllDeclaration>;
|
|
237
|
-
export declare function isExportDeclaration(
|
|
238
|
-
path: NodePath,
|
|
239
|
-
props?: object | null,
|
|
240
|
-
): path is NodePath<t.ExportDeclaration>;
|
|
241
|
-
export declare function isExportDefaultDeclaration(
|
|
242
|
-
path: NodePath,
|
|
243
|
-
props?: object | null,
|
|
244
|
-
): path is NodePath<t.ExportDefaultDeclaration>;
|
|
245
|
-
export declare function isExportDefaultSpecifier(
|
|
246
|
-
path: NodePath,
|
|
247
|
-
props?: object | null,
|
|
248
|
-
): path is NodePath<t.ExportDefaultSpecifier>;
|
|
249
|
-
export declare function isExportNamedDeclaration(
|
|
250
|
-
path: NodePath,
|
|
251
|
-
props?: object | null,
|
|
252
|
-
): path is NodePath<t.ExportNamedDeclaration>;
|
|
253
|
-
export declare function isExportNamespaceSpecifier(
|
|
254
|
-
path: NodePath,
|
|
255
|
-
props?: object | null,
|
|
256
|
-
): path is NodePath<t.ExportNamespaceSpecifier>;
|
|
257
|
-
export declare function isExportSpecifier(
|
|
258
|
-
path: NodePath,
|
|
259
|
-
props?: object | null,
|
|
260
|
-
): path is NodePath<t.ExportSpecifier>;
|
|
261
|
-
export declare function isExpression(
|
|
262
|
-
path: NodePath,
|
|
263
|
-
props?: object | null,
|
|
264
|
-
): path is NodePath<t.Expression>;
|
|
265
|
-
export declare function isExpressionStatement(
|
|
266
|
-
path: NodePath,
|
|
267
|
-
props?: object | null,
|
|
268
|
-
): path is NodePath<t.ExpressionStatement>;
|
|
269
|
-
export declare function isExpressionWrapper(
|
|
270
|
-
path: NodePath,
|
|
271
|
-
props?: object | null,
|
|
272
|
-
): path is NodePath<t.ExpressionWrapper>;
|
|
273
|
-
export declare function isFile(
|
|
274
|
-
path: NodePath,
|
|
275
|
-
props?: object | null,
|
|
276
|
-
): path is NodePath<t.File>;
|
|
277
|
-
export declare function isFlow(
|
|
278
|
-
path: NodePath,
|
|
279
|
-
props?: object | null,
|
|
280
|
-
): path is NodePath<t.Flow>;
|
|
281
|
-
export declare function isFlowBaseAnnotation(
|
|
282
|
-
path: NodePath,
|
|
283
|
-
props?: object | null,
|
|
284
|
-
): path is NodePath<t.FlowBaseAnnotation>;
|
|
285
|
-
export declare function isFlowDeclaration(
|
|
286
|
-
path: NodePath,
|
|
287
|
-
props?: object | null,
|
|
288
|
-
): path is NodePath<t.FlowDeclaration>;
|
|
289
|
-
export declare function isFlowPredicate(
|
|
290
|
-
path: NodePath,
|
|
291
|
-
props?: object | null,
|
|
292
|
-
): path is NodePath<t.FlowPredicate>;
|
|
293
|
-
export declare function isFlowType(
|
|
294
|
-
path: NodePath,
|
|
295
|
-
props?: object | null,
|
|
296
|
-
): path is NodePath<t.FlowType>;
|
|
297
|
-
export declare function isFor(
|
|
298
|
-
path: NodePath,
|
|
299
|
-
props?: object | null,
|
|
300
|
-
): path is NodePath<t.For>;
|
|
301
|
-
export declare function isForInStatement(
|
|
302
|
-
path: NodePath,
|
|
303
|
-
props?: object | null,
|
|
304
|
-
): path is NodePath<t.ForInStatement>;
|
|
305
|
-
export declare function isForOfStatement(
|
|
306
|
-
path: NodePath,
|
|
307
|
-
props?: object | null,
|
|
308
|
-
): path is NodePath<t.ForOfStatement>;
|
|
309
|
-
export declare function isForStatement(
|
|
310
|
-
path: NodePath,
|
|
311
|
-
props?: object | null,
|
|
312
|
-
): path is NodePath<t.ForStatement>;
|
|
313
|
-
export declare function isForXStatement(
|
|
314
|
-
path: NodePath,
|
|
315
|
-
props?: object | null,
|
|
316
|
-
): path is NodePath<t.ForXStatement>;
|
|
317
|
-
export declare function isFunction(
|
|
318
|
-
path: NodePath,
|
|
319
|
-
props?: object | null,
|
|
320
|
-
): path is NodePath<t.Function>;
|
|
321
|
-
export declare function isFunctionDeclaration(
|
|
322
|
-
path: NodePath,
|
|
323
|
-
props?: object | null,
|
|
324
|
-
): path is NodePath<t.FunctionDeclaration>;
|
|
325
|
-
export declare function isFunctionExpression(
|
|
326
|
-
path: NodePath,
|
|
327
|
-
props?: object | null,
|
|
328
|
-
): path is NodePath<t.FunctionExpression>;
|
|
329
|
-
export declare function isFunctionParent(
|
|
330
|
-
path: NodePath,
|
|
331
|
-
props?: object | null,
|
|
332
|
-
): path is NodePath<t.FunctionParent>;
|
|
333
|
-
export declare function isFunctionTypeAnnotation(
|
|
334
|
-
path: NodePath,
|
|
335
|
-
props?: object | null,
|
|
336
|
-
): path is NodePath<t.FunctionTypeAnnotation>;
|
|
337
|
-
export declare function isFunctionTypeParam(
|
|
338
|
-
path: NodePath,
|
|
339
|
-
props?: object | null,
|
|
340
|
-
): path is NodePath<t.FunctionTypeParam>;
|
|
341
|
-
export declare function isGenericTypeAnnotation(
|
|
342
|
-
path: NodePath,
|
|
343
|
-
props?: object | null,
|
|
344
|
-
): path is NodePath<t.GenericTypeAnnotation>;
|
|
345
|
-
export declare function isIdentifier(
|
|
346
|
-
path: NodePath,
|
|
347
|
-
props?: object | null,
|
|
348
|
-
): path is NodePath<t.Identifier>;
|
|
349
|
-
export declare function isIfStatement(
|
|
350
|
-
path: NodePath,
|
|
351
|
-
props?: object | null,
|
|
352
|
-
): path is NodePath<t.IfStatement>;
|
|
353
|
-
export declare function isImmutable(
|
|
354
|
-
path: NodePath,
|
|
355
|
-
props?: object | null,
|
|
356
|
-
): path is NodePath<t.Immutable>;
|
|
357
|
-
export declare function isImport(
|
|
358
|
-
path: NodePath,
|
|
359
|
-
props?: object | null,
|
|
360
|
-
): path is NodePath<t.Import>;
|
|
361
|
-
export declare function isImportDeclaration(
|
|
362
|
-
path: NodePath,
|
|
363
|
-
props?: object | null,
|
|
364
|
-
): path is NodePath<t.ImportDeclaration>;
|
|
365
|
-
export declare function isImportDefaultSpecifier(
|
|
366
|
-
path: NodePath,
|
|
367
|
-
props?: object | null,
|
|
368
|
-
): path is NodePath<t.ImportDefaultSpecifier>;
|
|
369
|
-
export declare function isImportNamespaceSpecifier(
|
|
370
|
-
path: NodePath,
|
|
371
|
-
props?: object | null,
|
|
372
|
-
): path is NodePath<t.ImportNamespaceSpecifier>;
|
|
373
|
-
export declare function isImportSpecifier(
|
|
374
|
-
path: NodePath,
|
|
375
|
-
props?: object | null,
|
|
376
|
-
): path is NodePath<t.ImportSpecifier>;
|
|
377
|
-
export declare function isInferredPredicate(
|
|
378
|
-
path: NodePath,
|
|
379
|
-
props?: object | null,
|
|
380
|
-
): path is NodePath<t.InferredPredicate>;
|
|
381
|
-
export declare function isInterfaceDeclaration(
|
|
382
|
-
path: NodePath,
|
|
383
|
-
props?: object | null,
|
|
384
|
-
): path is NodePath<t.InterfaceDeclaration>;
|
|
385
|
-
export declare function isInterfaceExtends(
|
|
386
|
-
path: NodePath,
|
|
387
|
-
props?: object | null,
|
|
388
|
-
): path is NodePath<t.InterfaceExtends>;
|
|
389
|
-
export declare function isInterfaceTypeAnnotation(
|
|
390
|
-
path: NodePath,
|
|
391
|
-
props?: object | null,
|
|
392
|
-
): path is NodePath<t.InterfaceTypeAnnotation>;
|
|
393
|
-
export declare function isInterpreterDirective(
|
|
394
|
-
path: NodePath,
|
|
395
|
-
props?: object | null,
|
|
396
|
-
): path is NodePath<t.InterpreterDirective>;
|
|
397
|
-
export declare function isIntersectionTypeAnnotation(
|
|
398
|
-
path: NodePath,
|
|
399
|
-
props?: object | null,
|
|
400
|
-
): path is NodePath<t.IntersectionTypeAnnotation>;
|
|
401
|
-
export declare function isJSX(
|
|
402
|
-
path: NodePath,
|
|
403
|
-
props?: object | null,
|
|
404
|
-
): path is NodePath<t.JSX>;
|
|
405
|
-
export declare function isJSXAttribute(
|
|
406
|
-
path: NodePath,
|
|
407
|
-
props?: object | null,
|
|
408
|
-
): path is NodePath<t.JSXAttribute>;
|
|
409
|
-
export declare function isJSXClosingElement(
|
|
410
|
-
path: NodePath,
|
|
411
|
-
props?: object | null,
|
|
412
|
-
): path is NodePath<t.JSXClosingElement>;
|
|
413
|
-
export declare function isJSXClosingFragment(
|
|
414
|
-
path: NodePath,
|
|
415
|
-
props?: object | null,
|
|
416
|
-
): path is NodePath<t.JSXClosingFragment>;
|
|
417
|
-
export declare function isJSXElement(
|
|
418
|
-
path: NodePath,
|
|
419
|
-
props?: object | null,
|
|
420
|
-
): path is NodePath<t.JSXElement>;
|
|
421
|
-
export declare function isJSXEmptyExpression(
|
|
422
|
-
path: NodePath,
|
|
423
|
-
props?: object | null,
|
|
424
|
-
): path is NodePath<t.JSXEmptyExpression>;
|
|
425
|
-
export declare function isJSXExpressionContainer(
|
|
426
|
-
path: NodePath,
|
|
427
|
-
props?: object | null,
|
|
428
|
-
): path is NodePath<t.JSXExpressionContainer>;
|
|
429
|
-
export declare function isJSXFragment(
|
|
430
|
-
path: NodePath,
|
|
431
|
-
props?: object | null,
|
|
432
|
-
): path is NodePath<t.JSXFragment>;
|
|
433
|
-
export declare function isJSXIdentifier(
|
|
434
|
-
path: NodePath,
|
|
435
|
-
props?: object | null,
|
|
436
|
-
): path is NodePath<t.JSXIdentifier>;
|
|
437
|
-
export declare function isJSXMemberExpression(
|
|
438
|
-
path: NodePath,
|
|
439
|
-
props?: object | null,
|
|
440
|
-
): path is NodePath<t.JSXMemberExpression>;
|
|
441
|
-
export declare function isJSXNamespacedName(
|
|
442
|
-
path: NodePath,
|
|
443
|
-
props?: object | null,
|
|
444
|
-
): path is NodePath<t.JSXNamespacedName>;
|
|
445
|
-
export declare function isJSXOpeningElement(
|
|
446
|
-
path: NodePath,
|
|
447
|
-
props?: object | null,
|
|
448
|
-
): path is NodePath<t.JSXOpeningElement>;
|
|
449
|
-
export declare function isJSXOpeningFragment(
|
|
450
|
-
path: NodePath,
|
|
451
|
-
props?: object | null,
|
|
452
|
-
): path is NodePath<t.JSXOpeningFragment>;
|
|
453
|
-
export declare function isJSXSpreadAttribute(
|
|
454
|
-
path: NodePath,
|
|
455
|
-
props?: object | null,
|
|
456
|
-
): path is NodePath<t.JSXSpreadAttribute>;
|
|
457
|
-
export declare function isJSXSpreadChild(
|
|
458
|
-
path: NodePath,
|
|
459
|
-
props?: object | null,
|
|
460
|
-
): path is NodePath<t.JSXSpreadChild>;
|
|
461
|
-
export declare function isJSXText(
|
|
462
|
-
path: NodePath,
|
|
463
|
-
props?: object | null,
|
|
464
|
-
): path is NodePath<t.JSXText>;
|
|
465
|
-
export declare function isLVal(
|
|
466
|
-
path: NodePath,
|
|
467
|
-
props?: object | null,
|
|
468
|
-
): path is NodePath<t.LVal>;
|
|
469
|
-
export declare function isLabeledStatement(
|
|
470
|
-
path: NodePath,
|
|
471
|
-
props?: object | null,
|
|
472
|
-
): path is NodePath<t.LabeledStatement>;
|
|
473
|
-
export declare function isLiteral(
|
|
474
|
-
path: NodePath,
|
|
475
|
-
props?: object | null,
|
|
476
|
-
): path is NodePath<t.Literal>;
|
|
477
|
-
export declare function isLogicalExpression(
|
|
478
|
-
path: NodePath,
|
|
479
|
-
props?: object | null,
|
|
480
|
-
): path is NodePath<t.LogicalExpression>;
|
|
481
|
-
export declare function isLoop(
|
|
482
|
-
path: NodePath,
|
|
483
|
-
props?: object | null,
|
|
484
|
-
): path is NodePath<t.Loop>;
|
|
485
|
-
export declare function isMemberExpression(
|
|
486
|
-
path: NodePath,
|
|
487
|
-
props?: object | null,
|
|
488
|
-
): path is NodePath<t.MemberExpression>;
|
|
489
|
-
export declare function isMetaProperty(
|
|
490
|
-
path: NodePath,
|
|
491
|
-
props?: object | null,
|
|
492
|
-
): path is NodePath<t.MetaProperty>;
|
|
493
|
-
export declare function isMethod(
|
|
494
|
-
path: NodePath,
|
|
495
|
-
props?: object | null,
|
|
496
|
-
): path is NodePath<t.Method>;
|
|
497
|
-
export declare function isMixedTypeAnnotation(
|
|
498
|
-
path: NodePath,
|
|
499
|
-
props?: object | null,
|
|
500
|
-
): path is NodePath<t.MixedTypeAnnotation>;
|
|
501
|
-
export declare function isModuleDeclaration(
|
|
502
|
-
path: NodePath,
|
|
503
|
-
props?: object | null,
|
|
504
|
-
): path is NodePath<t.ModuleDeclaration>;
|
|
505
|
-
export declare function isModuleSpecifier(
|
|
506
|
-
path: NodePath,
|
|
507
|
-
props?: object | null,
|
|
508
|
-
): path is NodePath<t.ModuleSpecifier>;
|
|
509
|
-
export declare function isNewExpression(
|
|
510
|
-
path: NodePath,
|
|
511
|
-
props?: object | null,
|
|
512
|
-
): path is NodePath<t.NewExpression>;
|
|
513
|
-
export declare function isNoop(
|
|
514
|
-
path: NodePath,
|
|
515
|
-
props?: object | null,
|
|
516
|
-
): path is NodePath<t.Noop>;
|
|
517
|
-
export declare function isNullLiteral(
|
|
518
|
-
path: NodePath,
|
|
519
|
-
props?: object | null,
|
|
520
|
-
): path is NodePath<t.NullLiteral>;
|
|
521
|
-
export declare function isNullLiteralTypeAnnotation(
|
|
522
|
-
path: NodePath,
|
|
523
|
-
props?: object | null,
|
|
524
|
-
): path is NodePath<t.NullLiteralTypeAnnotation>;
|
|
525
|
-
export declare function isNullableTypeAnnotation(
|
|
526
|
-
path: NodePath,
|
|
527
|
-
props?: object | null,
|
|
528
|
-
): path is NodePath<t.NullableTypeAnnotation>;
|
|
529
|
-
export declare function isNumberLiteralTypeAnnotation(
|
|
530
|
-
path: NodePath,
|
|
531
|
-
props?: object | null,
|
|
532
|
-
): path is NodePath<t.NumberLiteralTypeAnnotation>;
|
|
533
|
-
export declare function isNumberTypeAnnotation(
|
|
534
|
-
path: NodePath,
|
|
535
|
-
props?: object | null,
|
|
536
|
-
): path is NodePath<t.NumberTypeAnnotation>;
|
|
537
|
-
export declare function isNumericLiteral(
|
|
538
|
-
path: NodePath,
|
|
539
|
-
props?: object | null,
|
|
540
|
-
): path is NodePath<t.NumericLiteral>;
|
|
541
|
-
export declare function isObjectExpression(
|
|
542
|
-
path: NodePath,
|
|
543
|
-
props?: object | null,
|
|
544
|
-
): path is NodePath<t.ObjectExpression>;
|
|
545
|
-
export declare function isObjectMember(
|
|
546
|
-
path: NodePath,
|
|
547
|
-
props?: object | null,
|
|
548
|
-
): path is NodePath<t.ObjectMember>;
|
|
549
|
-
export declare function isObjectMethod(
|
|
550
|
-
path: NodePath,
|
|
551
|
-
props?: object | null,
|
|
552
|
-
): path is NodePath<t.ObjectMethod>;
|
|
553
|
-
export declare function isObjectPattern(
|
|
554
|
-
path: NodePath,
|
|
555
|
-
props?: object | null,
|
|
556
|
-
): path is NodePath<t.ObjectPattern>;
|
|
557
|
-
export declare function isObjectProperty(
|
|
558
|
-
path: NodePath,
|
|
559
|
-
props?: object | null,
|
|
560
|
-
): path is NodePath<t.ObjectProperty>;
|
|
561
|
-
export declare function isObjectTypeAnnotation(
|
|
562
|
-
path: NodePath,
|
|
563
|
-
props?: object | null,
|
|
564
|
-
): path is NodePath<t.ObjectTypeAnnotation>;
|
|
565
|
-
export declare function isObjectTypeCallProperty(
|
|
566
|
-
path: NodePath,
|
|
567
|
-
props?: object | null,
|
|
568
|
-
): path is NodePath<t.ObjectTypeCallProperty>;
|
|
569
|
-
export declare function isObjectTypeIndexer(
|
|
570
|
-
path: NodePath,
|
|
571
|
-
props?: object | null,
|
|
572
|
-
): path is NodePath<t.ObjectTypeIndexer>;
|
|
573
|
-
export declare function isObjectTypeInternalSlot(
|
|
574
|
-
path: NodePath,
|
|
575
|
-
props?: object | null,
|
|
576
|
-
): path is NodePath<t.ObjectTypeInternalSlot>;
|
|
577
|
-
export declare function isObjectTypeProperty(
|
|
578
|
-
path: NodePath,
|
|
579
|
-
props?: object | null,
|
|
580
|
-
): path is NodePath<t.ObjectTypeProperty>;
|
|
581
|
-
export declare function isObjectTypeSpreadProperty(
|
|
582
|
-
path: NodePath,
|
|
583
|
-
props?: object | null,
|
|
584
|
-
): path is NodePath<t.ObjectTypeSpreadProperty>;
|
|
585
|
-
export declare function isOpaqueType(
|
|
586
|
-
path: NodePath,
|
|
587
|
-
props?: object | null,
|
|
588
|
-
): path is NodePath<t.OpaqueType>;
|
|
589
|
-
export declare function isOptionalCallExpression(
|
|
590
|
-
path: NodePath,
|
|
591
|
-
props?: object | null,
|
|
592
|
-
): path is NodePath<t.OptionalCallExpression>;
|
|
593
|
-
export declare function isOptionalMemberExpression(
|
|
594
|
-
path: NodePath,
|
|
595
|
-
props?: object | null,
|
|
596
|
-
): path is NodePath<t.OptionalMemberExpression>;
|
|
597
|
-
export declare function isParenthesizedExpression(
|
|
598
|
-
path: NodePath,
|
|
599
|
-
props?: object | null,
|
|
600
|
-
): path is NodePath<t.ParenthesizedExpression>;
|
|
601
|
-
export declare function isPattern(
|
|
602
|
-
path: NodePath,
|
|
603
|
-
props?: object | null,
|
|
604
|
-
): path is NodePath<t.Pattern>;
|
|
605
|
-
export declare function isPatternLike(
|
|
606
|
-
path: NodePath,
|
|
607
|
-
props?: object | null,
|
|
608
|
-
): path is NodePath<t.PatternLike>;
|
|
609
|
-
export declare function isPipelineBareFunction(
|
|
610
|
-
path: NodePath,
|
|
611
|
-
props?: object | null,
|
|
612
|
-
): path is NodePath<t.PipelineBareFunction>;
|
|
613
|
-
export declare function isPipelinePrimaryTopicReference(
|
|
614
|
-
path: NodePath,
|
|
615
|
-
props?: object | null,
|
|
616
|
-
): path is NodePath<t.PipelinePrimaryTopicReference>;
|
|
617
|
-
export declare function isPipelineTopicExpression(
|
|
618
|
-
path: NodePath,
|
|
619
|
-
props?: object | null,
|
|
620
|
-
): path is NodePath<t.PipelineTopicExpression>;
|
|
621
|
-
export declare function isPrivate(
|
|
622
|
-
path: NodePath,
|
|
623
|
-
props?: object | null,
|
|
624
|
-
): path is NodePath<t.Private>;
|
|
625
|
-
export declare function isPrivateName(
|
|
626
|
-
path: NodePath,
|
|
627
|
-
props?: object | null,
|
|
628
|
-
): path is NodePath<t.PrivateName>;
|
|
629
|
-
export declare function isProgram(
|
|
630
|
-
path: NodePath,
|
|
631
|
-
props?: object | null,
|
|
632
|
-
): path is NodePath<t.Program>;
|
|
633
|
-
export declare function isProperty(
|
|
634
|
-
path: NodePath,
|
|
635
|
-
props?: object | null,
|
|
636
|
-
): path is NodePath<t.Property>;
|
|
637
|
-
export declare function isPureish(
|
|
638
|
-
path: NodePath,
|
|
639
|
-
props?: object | null,
|
|
640
|
-
): path is NodePath<t.Pureish>;
|
|
641
|
-
export declare function isQualifiedTypeIdentifier(
|
|
642
|
-
path: NodePath,
|
|
643
|
-
props?: object | null,
|
|
644
|
-
): path is NodePath<t.QualifiedTypeIdentifier>;
|
|
645
|
-
export declare function isRegExpLiteral(
|
|
646
|
-
path: NodePath,
|
|
647
|
-
props?: object | null,
|
|
648
|
-
): path is NodePath<t.RegExpLiteral>;
|
|
649
|
-
export declare function isRestElement(
|
|
650
|
-
path: NodePath,
|
|
651
|
-
props?: object | null,
|
|
652
|
-
): path is NodePath<t.RestElement>;
|
|
653
|
-
export declare function isReturnStatement(
|
|
654
|
-
path: NodePath,
|
|
655
|
-
props?: object | null,
|
|
656
|
-
): path is NodePath<t.ReturnStatement>;
|
|
657
|
-
export declare function isScopable(
|
|
658
|
-
path: NodePath,
|
|
659
|
-
props?: object | null,
|
|
660
|
-
): path is NodePath<t.Scopable>;
|
|
661
|
-
export declare function isSequenceExpression(
|
|
662
|
-
path: NodePath,
|
|
663
|
-
props?: object | null,
|
|
664
|
-
): path is NodePath<t.SequenceExpression>;
|
|
665
|
-
export declare function isSpreadElement(
|
|
666
|
-
path: NodePath,
|
|
667
|
-
props?: object | null,
|
|
668
|
-
): path is NodePath<t.SpreadElement>;
|
|
669
|
-
export declare function isStatement(
|
|
670
|
-
path: NodePath,
|
|
671
|
-
props?: object | null,
|
|
672
|
-
): path is NodePath<t.Statement>;
|
|
673
|
-
export declare function isStringLiteral(
|
|
674
|
-
path: NodePath,
|
|
675
|
-
props?: object | null,
|
|
676
|
-
): path is NodePath<t.StringLiteral>;
|
|
677
|
-
export declare function isStringLiteralTypeAnnotation(
|
|
678
|
-
path: NodePath,
|
|
679
|
-
props?: object | null,
|
|
680
|
-
): path is NodePath<t.StringLiteralTypeAnnotation>;
|
|
681
|
-
export declare function isStringTypeAnnotation(
|
|
682
|
-
path: NodePath,
|
|
683
|
-
props?: object | null,
|
|
684
|
-
): path is NodePath<t.StringTypeAnnotation>;
|
|
685
|
-
export declare function isSuper(
|
|
686
|
-
path: NodePath,
|
|
687
|
-
props?: object | null,
|
|
688
|
-
): path is NodePath<t.Super>;
|
|
689
|
-
export declare function isSwitchCase(
|
|
690
|
-
path: NodePath,
|
|
691
|
-
props?: object | null,
|
|
692
|
-
): path is NodePath<t.SwitchCase>;
|
|
693
|
-
export declare function isSwitchStatement(
|
|
694
|
-
path: NodePath,
|
|
695
|
-
props?: object | null,
|
|
696
|
-
): path is NodePath<t.SwitchStatement>;
|
|
697
|
-
export declare function isTSAnyKeyword(
|
|
698
|
-
path: NodePath,
|
|
699
|
-
props?: object | null,
|
|
700
|
-
): path is NodePath<t.TSAnyKeyword>;
|
|
701
|
-
export declare function isTSArrayType(
|
|
702
|
-
path: NodePath,
|
|
703
|
-
props?: object | null,
|
|
704
|
-
): path is NodePath<t.TSArrayType>;
|
|
705
|
-
export declare function isTSAsExpression(
|
|
706
|
-
path: NodePath,
|
|
707
|
-
props?: object | null,
|
|
708
|
-
): path is NodePath<t.TSAsExpression>;
|
|
709
|
-
export declare function isTSBooleanKeyword(
|
|
710
|
-
path: NodePath,
|
|
711
|
-
props?: object | null,
|
|
712
|
-
): path is NodePath<t.TSBooleanKeyword>;
|
|
713
|
-
export declare function isTSCallSignatureDeclaration(
|
|
714
|
-
path: NodePath,
|
|
715
|
-
props?: object | null,
|
|
716
|
-
): path is NodePath<t.TSCallSignatureDeclaration>;
|
|
717
|
-
export declare function isTSConditionalType(
|
|
718
|
-
path: NodePath,
|
|
719
|
-
props?: object | null,
|
|
720
|
-
): path is NodePath<t.TSConditionalType>;
|
|
721
|
-
export declare function isTSConstructSignatureDeclaration(
|
|
722
|
-
path: NodePath,
|
|
723
|
-
props?: object | null,
|
|
724
|
-
): path is NodePath<t.TSConstructSignatureDeclaration>;
|
|
725
|
-
export declare function isTSConstructorType(
|
|
726
|
-
path: NodePath,
|
|
727
|
-
props?: object | null,
|
|
728
|
-
): path is NodePath<t.TSConstructorType>;
|
|
729
|
-
export declare function isTSDeclareFunction(
|
|
730
|
-
path: NodePath,
|
|
731
|
-
props?: object | null,
|
|
732
|
-
): path is NodePath<t.TSDeclareFunction>;
|
|
733
|
-
export declare function isTSDeclareMethod(
|
|
734
|
-
path: NodePath,
|
|
735
|
-
props?: object | null,
|
|
736
|
-
): path is NodePath<t.TSDeclareMethod>;
|
|
737
|
-
export declare function isTSEntityName(
|
|
738
|
-
path: NodePath,
|
|
739
|
-
props?: object | null,
|
|
740
|
-
): path is NodePath<t.TSEntityName>;
|
|
741
|
-
export declare function isTSEnumDeclaration(
|
|
742
|
-
path: NodePath,
|
|
743
|
-
props?: object | null,
|
|
744
|
-
): path is NodePath<t.TSEnumDeclaration>;
|
|
745
|
-
export declare function isTSEnumMember(
|
|
746
|
-
path: NodePath,
|
|
747
|
-
props?: object | null,
|
|
748
|
-
): path is NodePath<t.TSEnumMember>;
|
|
749
|
-
export declare function isTSExportAssignment(
|
|
750
|
-
path: NodePath,
|
|
751
|
-
props?: object | null,
|
|
752
|
-
): path is NodePath<t.TSExportAssignment>;
|
|
753
|
-
export declare function isTSExpressionWithTypeArguments(
|
|
754
|
-
path: NodePath,
|
|
755
|
-
props?: object | null,
|
|
756
|
-
): path is NodePath<t.TSExpressionWithTypeArguments>;
|
|
757
|
-
export declare function isTSExternalModuleReference(
|
|
758
|
-
path: NodePath,
|
|
759
|
-
props?: object | null,
|
|
760
|
-
): path is NodePath<t.TSExternalModuleReference>;
|
|
761
|
-
export declare function isTSFunctionType(
|
|
762
|
-
path: NodePath,
|
|
763
|
-
props?: object | null,
|
|
764
|
-
): path is NodePath<t.TSFunctionType>;
|
|
765
|
-
export declare function isTSImportEqualsDeclaration(
|
|
766
|
-
path: NodePath,
|
|
767
|
-
props?: object | null,
|
|
768
|
-
): path is NodePath<t.TSImportEqualsDeclaration>;
|
|
769
|
-
export declare function isTSImportType(
|
|
770
|
-
path: NodePath,
|
|
771
|
-
props?: object | null,
|
|
772
|
-
): path is NodePath<t.TSImportType>;
|
|
773
|
-
export declare function isTSIndexSignature(
|
|
774
|
-
path: NodePath,
|
|
775
|
-
props?: object | null,
|
|
776
|
-
): path is NodePath<t.TSIndexSignature>;
|
|
777
|
-
export declare function isTSIndexedAccessType(
|
|
778
|
-
path: NodePath,
|
|
779
|
-
props?: object | null,
|
|
780
|
-
): path is NodePath<t.TSIndexedAccessType>;
|
|
781
|
-
export declare function isTSInferType(
|
|
782
|
-
path: NodePath,
|
|
783
|
-
props?: object | null,
|
|
784
|
-
): path is NodePath<t.TSInferType>;
|
|
785
|
-
export declare function isTSInterfaceBody(
|
|
786
|
-
path: NodePath,
|
|
787
|
-
props?: object | null,
|
|
788
|
-
): path is NodePath<t.TSInterfaceBody>;
|
|
789
|
-
export declare function isTSInterfaceDeclaration(
|
|
790
|
-
path: NodePath,
|
|
791
|
-
props?: object | null,
|
|
792
|
-
): path is NodePath<t.TSInterfaceDeclaration>;
|
|
793
|
-
export declare function isTSIntersectionType(
|
|
794
|
-
path: NodePath,
|
|
795
|
-
props?: object | null,
|
|
796
|
-
): path is NodePath<t.TSIntersectionType>;
|
|
797
|
-
export declare function isTSLiteralType(
|
|
798
|
-
path: NodePath,
|
|
799
|
-
props?: object | null,
|
|
800
|
-
): path is NodePath<t.TSLiteralType>;
|
|
801
|
-
export declare function isTSMappedType(
|
|
802
|
-
path: NodePath,
|
|
803
|
-
props?: object | null,
|
|
804
|
-
): path is NodePath<t.TSMappedType>;
|
|
805
|
-
export declare function isTSMethodSignature(
|
|
806
|
-
path: NodePath,
|
|
807
|
-
props?: object | null,
|
|
808
|
-
): path is NodePath<t.TSMethodSignature>;
|
|
809
|
-
export declare function isTSModuleBlock(
|
|
810
|
-
path: NodePath,
|
|
811
|
-
props?: object | null,
|
|
812
|
-
): path is NodePath<t.TSModuleBlock>;
|
|
813
|
-
export declare function isTSModuleDeclaration(
|
|
814
|
-
path: NodePath,
|
|
815
|
-
props?: object | null,
|
|
816
|
-
): path is NodePath<t.TSModuleDeclaration>;
|
|
817
|
-
export declare function isTSNamespaceExportDeclaration(
|
|
818
|
-
path: NodePath,
|
|
819
|
-
props?: object | null,
|
|
820
|
-
): path is NodePath<t.TSNamespaceExportDeclaration>;
|
|
821
|
-
export declare function isTSNeverKeyword(
|
|
822
|
-
path: NodePath,
|
|
823
|
-
props?: object | null,
|
|
824
|
-
): path is NodePath<t.TSNeverKeyword>;
|
|
825
|
-
export declare function isTSNonNullExpression(
|
|
826
|
-
path: NodePath,
|
|
827
|
-
props?: object | null,
|
|
828
|
-
): path is NodePath<t.TSNonNullExpression>;
|
|
829
|
-
export declare function isTSNullKeyword(
|
|
830
|
-
path: NodePath,
|
|
831
|
-
props?: object | null,
|
|
832
|
-
): path is NodePath<t.TSNullKeyword>;
|
|
833
|
-
export declare function isTSNumberKeyword(
|
|
834
|
-
path: NodePath,
|
|
835
|
-
props?: object | null,
|
|
836
|
-
): path is NodePath<t.TSNumberKeyword>;
|
|
837
|
-
export declare function isTSObjectKeyword(
|
|
838
|
-
path: NodePath,
|
|
839
|
-
props?: object | null,
|
|
840
|
-
): path is NodePath<t.TSObjectKeyword>;
|
|
841
|
-
export declare function isTSOptionalType(
|
|
842
|
-
path: NodePath,
|
|
843
|
-
props?: object | null,
|
|
844
|
-
): path is NodePath<t.TSOptionalType>;
|
|
845
|
-
export declare function isTSParameterProperty(
|
|
846
|
-
path: NodePath,
|
|
847
|
-
props?: object | null,
|
|
848
|
-
): path is NodePath<t.TSParameterProperty>;
|
|
849
|
-
export declare function isTSParenthesizedType(
|
|
850
|
-
path: NodePath,
|
|
851
|
-
props?: object | null,
|
|
852
|
-
): path is NodePath<t.TSParenthesizedType>;
|
|
853
|
-
export declare function isTSPropertySignature(
|
|
854
|
-
path: NodePath,
|
|
855
|
-
props?: object | null,
|
|
856
|
-
): path is NodePath<t.TSPropertySignature>;
|
|
857
|
-
export declare function isTSQualifiedName(
|
|
858
|
-
path: NodePath,
|
|
859
|
-
props?: object | null,
|
|
860
|
-
): path is NodePath<t.TSQualifiedName>;
|
|
861
|
-
export declare function isTSRestType(
|
|
862
|
-
path: NodePath,
|
|
863
|
-
props?: object | null,
|
|
864
|
-
): path is NodePath<t.TSRestType>;
|
|
865
|
-
export declare function isTSStringKeyword(
|
|
866
|
-
path: NodePath,
|
|
867
|
-
props?: object | null,
|
|
868
|
-
): path is NodePath<t.TSStringKeyword>;
|
|
869
|
-
export declare function isTSSymbolKeyword(
|
|
870
|
-
path: NodePath,
|
|
871
|
-
props?: object | null,
|
|
872
|
-
): path is NodePath<t.TSSymbolKeyword>;
|
|
873
|
-
export declare function isTSThisType(
|
|
874
|
-
path: NodePath,
|
|
875
|
-
props?: object | null,
|
|
876
|
-
): path is NodePath<t.TSThisType>;
|
|
877
|
-
export declare function isTSTupleType(
|
|
878
|
-
path: NodePath,
|
|
879
|
-
props?: object | null,
|
|
880
|
-
): path is NodePath<t.TSTupleType>;
|
|
881
|
-
export declare function isTSType(
|
|
882
|
-
path: NodePath,
|
|
883
|
-
props?: object | null,
|
|
884
|
-
): path is NodePath<t.TSType>;
|
|
885
|
-
export declare function isTSTypeAliasDeclaration(
|
|
886
|
-
path: NodePath,
|
|
887
|
-
props?: object | null,
|
|
888
|
-
): path is NodePath<t.TSTypeAliasDeclaration>;
|
|
889
|
-
export declare function isTSTypeAnnotation(
|
|
890
|
-
path: NodePath,
|
|
891
|
-
props?: object | null,
|
|
892
|
-
): path is NodePath<t.TSTypeAnnotation>;
|
|
893
|
-
export declare function isTSTypeAssertion(
|
|
894
|
-
path: NodePath,
|
|
895
|
-
props?: object | null,
|
|
896
|
-
): path is NodePath<t.TSTypeAssertion>;
|
|
897
|
-
export declare function isTSTypeElement(
|
|
898
|
-
path: NodePath,
|
|
899
|
-
props?: object | null,
|
|
900
|
-
): path is NodePath<t.TSTypeElement>;
|
|
901
|
-
export declare function isTSTypeLiteral(
|
|
902
|
-
path: NodePath,
|
|
903
|
-
props?: object | null,
|
|
904
|
-
): path is NodePath<t.TSTypeLiteral>;
|
|
905
|
-
export declare function isTSTypeOperator(
|
|
906
|
-
path: NodePath,
|
|
907
|
-
props?: object | null,
|
|
908
|
-
): path is NodePath<t.TSTypeOperator>;
|
|
909
|
-
export declare function isTSTypeParameter(
|
|
910
|
-
path: NodePath,
|
|
911
|
-
props?: object | null,
|
|
912
|
-
): path is NodePath<t.TSTypeParameter>;
|
|
913
|
-
export declare function isTSTypeParameterDeclaration(
|
|
914
|
-
path: NodePath,
|
|
915
|
-
props?: object | null,
|
|
916
|
-
): path is NodePath<t.TSTypeParameterDeclaration>;
|
|
917
|
-
export declare function isTSTypeParameterInstantiation(
|
|
918
|
-
path: NodePath,
|
|
919
|
-
props?: object | null,
|
|
920
|
-
): path is NodePath<t.TSTypeParameterInstantiation>;
|
|
921
|
-
export declare function isTSTypePredicate(
|
|
922
|
-
path: NodePath,
|
|
923
|
-
props?: object | null,
|
|
924
|
-
): path is NodePath<t.TSTypePredicate>;
|
|
925
|
-
export declare function isTSTypeQuery(
|
|
926
|
-
path: NodePath,
|
|
927
|
-
props?: object | null,
|
|
928
|
-
): path is NodePath<t.TSTypeQuery>;
|
|
929
|
-
export declare function isTSTypeReference(
|
|
930
|
-
path: NodePath,
|
|
931
|
-
props?: object | null,
|
|
932
|
-
): path is NodePath<t.TSTypeReference>;
|
|
933
|
-
export declare function isTSUndefinedKeyword(
|
|
934
|
-
path: NodePath,
|
|
935
|
-
props?: object | null,
|
|
936
|
-
): path is NodePath<t.TSUndefinedKeyword>;
|
|
937
|
-
export declare function isTSUnionType(
|
|
938
|
-
path: NodePath,
|
|
939
|
-
props?: object | null,
|
|
940
|
-
): path is NodePath<t.TSUnionType>;
|
|
941
|
-
export declare function isTSUnknownKeyword(
|
|
942
|
-
path: NodePath,
|
|
943
|
-
props?: object | null,
|
|
944
|
-
): path is NodePath<t.TSUnknownKeyword>;
|
|
945
|
-
export declare function isTSVoidKeyword(
|
|
946
|
-
path: NodePath,
|
|
947
|
-
props?: object | null,
|
|
948
|
-
): path is NodePath<t.TSVoidKeyword>;
|
|
949
|
-
export declare function isTaggedTemplateExpression(
|
|
950
|
-
path: NodePath,
|
|
951
|
-
props?: object | null,
|
|
952
|
-
): path is NodePath<t.TaggedTemplateExpression>;
|
|
953
|
-
export declare function isTemplateElement(
|
|
954
|
-
path: NodePath,
|
|
955
|
-
props?: object | null,
|
|
956
|
-
): path is NodePath<t.TemplateElement>;
|
|
957
|
-
export declare function isTemplateLiteral(
|
|
958
|
-
path: NodePath,
|
|
959
|
-
props?: object | null,
|
|
960
|
-
): path is NodePath<t.TemplateLiteral>;
|
|
961
|
-
export declare function isTerminatorless(
|
|
962
|
-
path: NodePath,
|
|
963
|
-
props?: object | null,
|
|
964
|
-
): path is NodePath<t.Terminatorless>;
|
|
965
|
-
export declare function isThisExpression(
|
|
966
|
-
path: NodePath,
|
|
967
|
-
props?: object | null,
|
|
968
|
-
): path is NodePath<t.ThisExpression>;
|
|
969
|
-
export declare function isThisTypeAnnotation(
|
|
970
|
-
path: NodePath,
|
|
971
|
-
props?: object | null,
|
|
972
|
-
): path is NodePath<t.ThisTypeAnnotation>;
|
|
973
|
-
export declare function isThrowStatement(
|
|
974
|
-
path: NodePath,
|
|
975
|
-
props?: object | null,
|
|
976
|
-
): path is NodePath<t.ThrowStatement>;
|
|
977
|
-
export declare function isTryStatement(
|
|
978
|
-
path: NodePath,
|
|
979
|
-
props?: object | null,
|
|
980
|
-
): path is NodePath<t.TryStatement>;
|
|
981
|
-
export declare function isTupleTypeAnnotation(
|
|
982
|
-
path: NodePath,
|
|
983
|
-
props?: object | null,
|
|
984
|
-
): path is NodePath<t.TupleTypeAnnotation>;
|
|
985
|
-
export declare function isTypeAlias(
|
|
986
|
-
path: NodePath,
|
|
987
|
-
props?: object | null,
|
|
988
|
-
): path is NodePath<t.TypeAlias>;
|
|
989
|
-
export declare function isTypeAnnotation(
|
|
990
|
-
path: NodePath,
|
|
991
|
-
props?: object | null,
|
|
992
|
-
): path is NodePath<t.TypeAnnotation>;
|
|
993
|
-
export declare function isTypeCastExpression(
|
|
994
|
-
path: NodePath,
|
|
995
|
-
props?: object | null,
|
|
996
|
-
): path is NodePath<t.TypeCastExpression>;
|
|
997
|
-
export declare function isTypeParameter(
|
|
998
|
-
path: NodePath,
|
|
999
|
-
props?: object | null,
|
|
1000
|
-
): path is NodePath<t.TypeParameter>;
|
|
1001
|
-
export declare function isTypeParameterDeclaration(
|
|
1002
|
-
path: NodePath,
|
|
1003
|
-
props?: object | null,
|
|
1004
|
-
): path is NodePath<t.TypeParameterDeclaration>;
|
|
1005
|
-
export declare function isTypeParameterInstantiation(
|
|
1006
|
-
path: NodePath,
|
|
1007
|
-
props?: object | null,
|
|
1008
|
-
): path is NodePath<t.TypeParameterInstantiation>;
|
|
1009
|
-
export declare function isTypeofTypeAnnotation(
|
|
1010
|
-
path: NodePath,
|
|
1011
|
-
props?: object | null,
|
|
1012
|
-
): path is NodePath<t.TypeofTypeAnnotation>;
|
|
1013
|
-
export declare function isUnaryExpression(
|
|
1014
|
-
path: NodePath,
|
|
1015
|
-
props?: object | null,
|
|
1016
|
-
): path is NodePath<t.UnaryExpression>;
|
|
1017
|
-
export declare function isUnaryLike(
|
|
1018
|
-
path: NodePath,
|
|
1019
|
-
props?: object | null,
|
|
1020
|
-
): path is NodePath<t.UnaryLike>;
|
|
1021
|
-
export declare function isUnionTypeAnnotation(
|
|
1022
|
-
path: NodePath,
|
|
1023
|
-
props?: object | null,
|
|
1024
|
-
): path is NodePath<t.UnionTypeAnnotation>;
|
|
1025
|
-
export declare function isUpdateExpression(
|
|
1026
|
-
path: NodePath,
|
|
1027
|
-
props?: object | null,
|
|
1028
|
-
): path is NodePath<t.UpdateExpression>;
|
|
1029
|
-
export declare function isUserWhitespacable(
|
|
1030
|
-
path: NodePath,
|
|
1031
|
-
props?: object | null,
|
|
1032
|
-
): path is NodePath<t.UserWhitespacable>;
|
|
1033
|
-
export declare function isVariableDeclaration(
|
|
1034
|
-
path: NodePath,
|
|
1035
|
-
props?: object | null,
|
|
1036
|
-
): path is NodePath<t.VariableDeclaration>;
|
|
1037
|
-
export declare function isVariableDeclarator(
|
|
1038
|
-
path: NodePath,
|
|
1039
|
-
props?: object | null,
|
|
1040
|
-
): path is NodePath<t.VariableDeclarator>;
|
|
1041
|
-
export declare function isVariance(
|
|
1042
|
-
path: NodePath,
|
|
1043
|
-
props?: object | null,
|
|
1044
|
-
): path is NodePath<t.Variance>;
|
|
1045
|
-
export declare function isVoidTypeAnnotation(
|
|
1046
|
-
path: NodePath,
|
|
1047
|
-
props?: object | null,
|
|
1048
|
-
): path is NodePath<t.VoidTypeAnnotation>;
|
|
1049
|
-
export declare function isWhile(
|
|
1050
|
-
path: NodePath,
|
|
1051
|
-
props?: object | null,
|
|
1052
|
-
): path is NodePath<t.While>;
|
|
1053
|
-
export declare function isWhileStatement(
|
|
1054
|
-
path: NodePath,
|
|
1055
|
-
props?: object | null,
|
|
1056
|
-
): path is NodePath<t.WhileStatement>;
|
|
1057
|
-
export declare function isWithStatement(
|
|
1058
|
-
path: NodePath,
|
|
1059
|
-
props?: object | null,
|
|
1060
|
-
): path is NodePath<t.WithStatement>;
|
|
1061
|
-
export declare function isYieldExpression(
|
|
1062
|
-
path: NodePath,
|
|
1063
|
-
props?: object | null,
|
|
1064
|
-
): path is NodePath<t.YieldExpression>;
|
|
1065
|
-
export declare function isBindingIdentifier(
|
|
1066
|
-
path: NodePath,
|
|
1067
|
-
props?: object | null,
|
|
1068
|
-
): path is NodePath<t.Identifier>;
|
|
1069
|
-
export declare function isBlockScoped(
|
|
1070
|
-
path: NodePath,
|
|
1071
|
-
props?: object | null,
|
|
1072
|
-
): path is NodePath<
|
|
1073
|
-
t.FunctionDeclaration | t.ClassDeclaration | t.VariableDeclaration
|
|
1074
|
-
>;
|
|
1075
|
-
export declare function isGenerated(
|
|
1076
|
-
path: NodePath,
|
|
1077
|
-
props?: object | null,
|
|
1078
|
-
): boolean;
|
|
1079
|
-
export declare function isPure(path: NodePath, props?: object | null): boolean;
|
|
1080
|
-
export declare function isReferenced(
|
|
1081
|
-
path: NodePath,
|
|
1082
|
-
props?: object | null,
|
|
1083
|
-
): boolean;
|
|
1084
|
-
export declare function isReferencedIdentifier(
|
|
1085
|
-
path: NodePath,
|
|
1086
|
-
props?: object | null,
|
|
1087
|
-
): path is NodePath<t.Identifier | t.JSXIdentifier>;
|
|
1088
|
-
export declare function isReferencedMemberExpression(
|
|
1089
|
-
path: NodePath,
|
|
1090
|
-
props?: object | null,
|
|
1091
|
-
): path is NodePath<t.MemberExpression>;
|
|
1092
|
-
export declare function isScope(
|
|
1093
|
-
path: NodePath,
|
|
1094
|
-
props?: object | null,
|
|
1095
|
-
): path is NodePath<t.Scopable>;
|
|
1096
|
-
export declare function isUser(path: NodePath, props?: object | null): boolean;
|
|
1097
|
-
export declare function isVar(
|
|
1098
|
-
path: NodePath,
|
|
1099
|
-
props?: object | null,
|
|
1100
|
-
): path is NodePath<t.VariableDeclaration>;
|