29 lines
666 B
TypeScript
29 lines
666 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
|
||
|
// @jsx: react
|
||
|
|
||
|
// @Filename: /node_modules/@types/react/index.d.ts
|
||
|
////export = React;
|
||
|
////export as namespace React;
|
||
|
////declare namespace React {
|
||
|
//// export class Component { render(): JSX.Element | null; }
|
||
|
////}
|
||
|
////declare global {
|
||
|
//// namespace JSX {
|
||
|
//// interface Element {}
|
||
|
//// }
|
||
|
////}
|
||
|
|
||
|
// @Filename: /a.tsx
|
||
|
////[|import { Component } from "react";
|
||
|
////export class MyMap extends Component { }
|
||
|
////<MyMap></MyMap>;|]
|
||
|
|
||
|
goTo.file("/a.tsx");
|
||
|
|
||
|
verify.importFixAtPosition([
|
||
|
`import { Component } from "react";
|
||
|
import * as React from "react";
|
||
|
export class MyMap extends Component { }
|
||
|
<MyMap></MyMap>;`]);
|