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

Function getJsxPropsTypeFromCallSignature

test/fixtures/snapshot/typescript.js:73070–73078  ·  view source on GitHub ↗
(sig, context)

Source from the content-addressed store, hash-verified

73068 : getJsxPropsTypeFromClassType(signature, node);
73069 }
73070 function getJsxPropsTypeFromCallSignature(sig, context) {
73071 var propsType = getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType);
73072 propsType = getJsxManagedAttributesFromLocatedAttributes(context, getJsxNamespaceAt(context), propsType);
73073 var intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context);
73074 if (!isErrorType(intrinsicAttribs)) {
73075 propsType = intersectTypes(intrinsicAttribs, propsType);
73076 }
73077 return propsType;
73078 }
73079 function getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation) {
73080 if (sig.compositeSignatures) {
73081 // JSX Elements using the legacy `props`-field based lookup (eg, react class components) need to treat the `props` member as an input

Calls 6

getJsxNamespaceAtFunction · 0.85
getJsxTypeFunction · 0.85
isErrorTypeFunction · 0.85
intersectTypesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…