TypeScript/tests/cases/fourslash/completionListInClosedObjectTypeLiteralInSignature02.ts
2017-06-01 10:59:24 -07:00

18 lines
583 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: TStr/*1*/ }
goTo.marker("1");
verify.completionListContains("I");
verify.completionListContains("TString");
verify.completionListContains("TNumber"); // REVIEW: Is this intended behavior?
// Ideally the following shouldn't show up since they're not types.
verify.not.completionListContains("foo");
verify.not.completionListContains("obj");