TypeScript/tests/cases/fourslash/tsxCompletionsGenericComponent.ts
Wesley Wigham d99de73e85
Handle type argument lists as jsx completion starts (#28493)
* Handle type argument lists as jsx completion starts

* preceeding -> preceding
2018-11-12 16:30:04 -08:00

32 lines
690 B
TypeScript

/// <reference path="fourslash.ts" />
// @jsx: preserve
// @skipLibCheck: true
// @Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
//// }
//// interface ElementAttributesProperty { props; }
//// }
////
////class Table<P> {
//// constructor(public props: P) {}
////}
////
////type Props = { widthInCol: number; text: string; };
////
/////**
//// * @param width {number} Table width in px
//// */
////function createTable(width) {
//// return <Table<Props> /*1*/ />
////}
////
////createTable(800);
verify.completions({
marker: "1",
includes: ["widthInCol", "text"]
});