source: imaps-frontend/node_modules/eslint-plugin-react/lib/util/componentUtil.d.ts

main
Last change on this file 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 */
6export function isES5Component(node: ASTNode, context: Context): boolean;
7/**
8 * @param {ASTNode} node
9 * @param {Context} context
10 * @returns {boolean}
11 */
12export 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 */
19export 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 */
26export 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 */
33export 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 */
40export function isPureComponent(node: ASTNode, context: Context): boolean;
41/**
42 * @param {ASTNode} node
43 * @returns {boolean}
44 */
45export function isStateMemberExpression(node: ASTNode): boolean;
46//# sourceMappingURL=componentUtil.d.ts.map
Note: See TracBrowser for help on using the repository browser.