eslint-plugin-react-snob
Version:
An ESLint plugin for React best practices
17 lines • 785 B
TypeScript
import { TSESTree } from '@typescript-eslint/utils';
/**
* Extracts the full qualified type name from a TSQualifiedName
* e.g., React.ComponentProps -> "React.ComponentProps"
*/
export declare function getQualifiedTypeName(node: TSESTree.TSQualifiedName): string;
/**
* Extracts the full type signature from a type reference including generics
* e.g., React.ComponentProps<'div'> -> "React.ComponentProps<'div'>"
*/
export declare function getFullTypeSignature(node: TSESTree.TSTypeReference): string;
/**
* Recursively finds all interface names referenced in a TypeScript type reference,
* including nested type arguments
*/
export declare function findInterfaceNamesInTypeReference(typeRef: TSESTree.TSTypeReference): string[];
//# sourceMappingURL=typescript-utils.d.ts.map