main
Last change
on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago |
Pred finalna verzija
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @param {ASTNode} node
|
---|
3 | * @param {Context} context
|
---|
4 | * @returns {boolean}
|
---|
5 | */
|
---|
6 | export function isES5Component(node: ASTNode, context: Context): boolean;
|
---|
7 | /**
|
---|
8 | * @param {ASTNode} node
|
---|
9 | * @param {Context} context
|
---|
10 | * @returns {boolean}
|
---|
11 | */
|
---|
12 | export function isES6Component(node: ASTNode, context: Context): boolean;
|
---|
13 | /**
|
---|
14 | * Get the parent ES5 component node from the current scope
|
---|
15 | * @param {Context} context
|
---|
16 | * @param {ASTNode} node
|
---|
17 | * @returns {ASTNode|null}
|
---|
18 | */
|
---|
19 | export function getParentES5Component(context: Context, node: ASTNode): ASTNode | null;
|
---|
20 | /**
|
---|
21 | * Get the parent ES6 component node from the current scope
|
---|
22 | * @param {Context} context
|
---|
23 | * @param {ASTNode} node
|
---|
24 | * @returns {ASTNode | null}
|
---|
25 | */
|
---|
26 | export function getParentES6Component(context: Context, node: ASTNode): ASTNode | null;
|
---|
27 | /**
|
---|
28 | * Check if the node is explicitly declared as a descendant of a React Component
|
---|
29 | * @param {any} node
|
---|
30 | * @param {Context} context
|
---|
31 | * @returns {boolean}
|
---|
32 | */
|
---|
33 | export function isExplicitComponent(node: any, context: Context): boolean;
|
---|
34 | /**
|
---|
35 | * Checks if a component extends React.PureComponent
|
---|
36 | * @param {ASTNode} node
|
---|
37 | * @param {Context} context
|
---|
38 | * @returns {boolean}
|
---|
39 | */
|
---|
40 | export function isPureComponent(node: ASTNode, context: Context): boolean;
|
---|
41 | /**
|
---|
42 | * @param {ASTNode} node
|
---|
43 | * @returns {boolean}
|
---|
44 | */
|
---|
45 | export function isStateMemberExpression(node: ASTNode): boolean;
|
---|
46 | //# sourceMappingURL=componentUtil.d.ts.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.