Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 457 Bytes

File metadata and controls

21 lines (13 loc) · 457 Bytes

@eslint-react/core / isJsxText

Function: isJsxText()

function isJsxText(node: Node | null | undefined): node is JSXText | Literal;

Check if a node is a JSXText or a Literal node

Parameters

Parameter Type Description
node Node | null | undefined The AST node to check

Returns

node is JSXText | Literal

true if the node is a JSXText or a Literal node