786bacfa3b
* Fix bug: support non-Identifier previousToken in importFixes * Remove intersection type
25 lines
440 B
TypeScript
25 lines
440 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.importFixAtPosition([
|
|
`import { factory } from "./factory";
|
|
|
|
<div/>`
|
|
]);
|