mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
This commit is contained in:
co-authored by
Andrew Branch
parent
3a7983a024
commit
fea13dd7b8
@@ -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>;
|
||||
Reference in New Issue
Block a user