MCPcopy Index your code
hub / github.com/nodejs/node / checkJsxAttribute

Function checkJsxAttribute

test/fixtures/snapshot/typescript.js:73778–73782  ·  view source on GitHub ↗
(node, checkMode)

Source from the content-addressed store, hash-verified

73776 return tagName.kind === 79 /* SyntaxKind.Identifier */ && ts.isIntrinsicJsxName(tagName.escapedText);
73777 }
73778 function checkJsxAttribute(node, checkMode) {
73779 return node.initializer
73780 ? checkExpressionForMutableLocation(node.initializer, checkMode)
73781 : trueType; // <Elem attr /> is sugar for <Elem attr={true} />
73782 }
73783 /**
73784 * Get attributes type of the JSX opening-like element. The result is from resolving "attributes" property of the opening-like element.
73785 *

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…