sicua
Version:
A tool for analyzing project structure and dependencies
17 lines (16 loc) • 690 B
TypeScript
import ts from "typescript";
import { PropSignature } from "../../../types";
/**
* Extracts prop types from a component node
* @param node Component AST node
* @param sourceFile Source file containing the component
* @returns Array of prop signatures
*/
export declare function extractPropTypes(node: ts.Node, sourceFile: ts.SourceFile): PropSignature[];
/**
* Finds the default value for a prop in a component
* @param propName Name of the prop
* @param componentNode Component AST node
* @returns Default value string if found
*/
export declare function findPropDefaultValue(propName: string, componentNode: ts.VariableDeclaration | ts.FunctionDeclaration): string | undefined;