新增: - backend/venv/ - Python 虚拟环境 - backend/start.sh - 启动脚本(使用虚拟环境) - backend/requirements.txt - 依赖列表 - .gitignore - 忽略虚拟环境和缓存文件 说明: - 每个项目使用独立虚拟环境 - 避免依赖冲突 - 启动脚本自动创建和激活虚拟环境
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
/**
|
|
* @param {ASTNode} node
|
|
* @param {Context} context
|
|
* @returns {boolean}
|
|
*/
|
|
export function isES5Component(node: ASTNode, context: Context): boolean;
|
|
/**
|
|
* @param {ASTNode} node
|
|
* @param {Context} context
|
|
* @returns {boolean}
|
|
*/
|
|
export function isES6Component(node: ASTNode, context: Context): boolean;
|
|
/**
|
|
* Get the parent ES5 component node from the current scope
|
|
* @param {Context} context
|
|
* @param {ASTNode} node
|
|
* @returns {ASTNode|null}
|
|
*/
|
|
export function getParentES5Component(context: Context, node: ASTNode): ASTNode | null;
|
|
/**
|
|
* Get the parent ES6 component node from the current scope
|
|
* @param {Context} context
|
|
* @param {ASTNode} node
|
|
* @returns {ASTNode | null}
|
|
*/
|
|
export function getParentES6Component(context: Context, node: ASTNode): ASTNode | null;
|
|
/**
|
|
* Check if the node is explicitly declared as a descendant of a React Component
|
|
* @param {any} node
|
|
* @param {Context} context
|
|
* @returns {boolean}
|
|
*/
|
|
export function isExplicitComponent(node: any, context: Context): boolean;
|
|
/**
|
|
* Checks if a component extends React.PureComponent
|
|
* @param {ASTNode} node
|
|
* @param {Context} context
|
|
* @returns {boolean}
|
|
*/
|
|
export function isPureComponent(node: ASTNode, context: Context): boolean;
|
|
/**
|
|
* @param {ASTNode} node
|
|
* @returns {boolean}
|
|
*/
|
|
export function isStateMemberExpression(node: ASTNode): boolean;
|
|
//# sourceMappingURL=componentUtil.d.ts.map
|