UNPKG

sicua

Version:

A tool for analyzing project structure and dependencies

11 lines (10 loc) 568 B
import ts from "typescript"; export declare class ErrorPatternUtils { static isErrorRelatedName(name: string): boolean; static isErrorLoggingCall(text: string): boolean; static isLikelyErrorBoundary(node: ts.JsxElement | ts.JsxSelfClosingElement): boolean; static extractJsxProps(node: ts.JsxElement | ts.JsxSelfClosingElement): Record<string, any>; static isErrorStateSetter(name: string): boolean; static getStateNameFromSetter(setter: string): string; static isFallbackElement(node: ts.JsxElement | ts.JsxSelfClosingElement): boolean; }