16 lines
726 B
TypeScript
16 lines
726 B
TypeScript
import type * as t from "@babel/types";
|
|
export declare class JSXUtils {
|
|
private static types;
|
|
static init(types: typeof t): void;
|
|
static getAttributeName(attr: t.JSXAttribute): string;
|
|
static getElementName(node: t.JSXOpeningElement): string | null;
|
|
private static collectJSXMemberName;
|
|
static isCustomComponent(name: string): boolean;
|
|
static isAllowedCustomComponent(name: string): boolean;
|
|
static isDOMElement(name: string): boolean;
|
|
static isDOMOrAllowed(name: string): boolean;
|
|
static producesJSX(node: t.Expression | t.Node): boolean;
|
|
private static callbackProducesJSX;
|
|
static doesBlockReturnJSX(block: t.BlockStatement): boolean;
|
|
}
|
|
//# sourceMappingURL=jsx-utils.d.ts.map
|