TypeScript/tests/cases/fourslash/completionListInUnclosedObjectTypeLiteralInSignature01.ts

18 lines
533 B
TypeScript

/// <reference path="fourslash.ts" />
////interface I<TString, TNumber> {
//// [s: string]: TString;
//// [s: number]: TNumber;
////}
////
////declare function foo<TString, TNumber>(obj: I<TString, TNumber>): { str: T/*1*/
goTo.marker("1");
verify.completionListContains("I");
verify.completionListContains("TString");
verify.completionListContains("TNumber");
// Ideally the following shouldn't show up since they're not types.
verify.completionListContains("foo");
verify.completionListContains("obj");