🤖 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-17 05:46:10 +09:00
committed by GitHub
co-authored by Andrew Branch
parent 3a7983a024
commit fea13dd7b8
2 changed files with 15 additions and 1 deletions
+1 -1
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;
@@ -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>;