TypeScript/tests/cases/fourslash/importNameCodeFixUMDGlobalReact2.ts
Andy 8ace7b826f importFixes: Support missing "React" at a JSXOpeningElement (#16066)
* importFixes: Support missing "React" at a JSXOpeningElement

* Fix nextLineRule linting

* Rename to resolveJsxNamespaceAtLocation

* Expose getJsxNamespace and resolveNameAtLocation separately
2017-06-05 14:23:39 -07:00

22 lines
403 B
TypeScript

/// <reference path="fourslash.ts" />
// https://github.com/Microsoft/TypeScript/issues/16065
// @jsx: react
// @jsxFactory: factory
// @Filename: /factory.ts
////export function factory() { return {}; }
////declare global {
//// namespace JSX {
//// interface Element {}
//// }
////}
// @Filename: /a.tsx
////[|<div/>|]
goTo.file("/a.tsx");
verify.not
verify.importFixAtPosition([]);