Skip to content

Commit fea13dd

Browse files
TypeScript Botandrewbranch
TypeScript Bot
andauthored
🤖 Pick PR #59193 (Mark jsxFactorySymbol as referenc...) into release-5.5 (#59225)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
1 parent 3a7983a commit fea13dd

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

‎src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33335,7 +33335,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3333533335

3333633336
checkJsxPreconditions(node);
3333733337

33338-
markLinkedReferences(node, ReferenceHint.Jsx);
33338+
markJsxAliasReferenced(node);
3333933339

3334033340
if (isNodeOpeningLikeElement) {
3334133341
const jsxOpeningLikeNode = node;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// @module: preserve
2+
// @verbatimModuleSyntax: true
3+
// @jsx: react
4+
// @noEmit: true
5+
// @noUnusedLocals: true
6+
// @noTypesAndSymbols: true
7+
8+
// @Filename: react.d.ts
9+
declare module 'react';
10+
11+
// @Filename: index.tsx
12+
import React from 'react';
13+
14+
export const build = <div>hello </div>;

0 commit comments

Comments
 (0)