🤖 Pick PR #59193 (Mark jsxFactorySymbol as referenc...) into release-5.5 (#59225)

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
This commit is contained in:
TypeScript Bot 2024-07-16 13:46:10 -07:00 committed by GitHub
parent 3a7983a024
commit fea13dd7b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -33335,7 +33335,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
checkJsxPreconditions(node);
markLinkedReferences(node, ReferenceHint.Jsx);
markJsxAliasReferenced(node);
if (isNodeOpeningLikeElement) {
const jsxOpeningLikeNode = node;

View File

@ -0,0 +1,14 @@
// @module: preserve
// @verbatimModuleSyntax: true
// @jsx: react
// @noEmit: true
// @noUnusedLocals: true
// @noTypesAndSymbols: true
// @Filename: react.d.ts
declare module 'react';
// @Filename: index.tsx
import React from 'react';
export const build = <div>hello </div>;