TypeScript/tests/cases/fourslash/completionListInUnclosedObjectTypeLiteralInSignature02.ts

15 lines
455 B
TypeScript
Raw Normal View History

2015-03-17 08:05:34 +01:00
/// <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*/
2018-05-01 22:00:13 +02:00
verify.completions({
marker: "1",
2018-05-01 22:00:13 +02:00
includes: ["I", "TString", "TNumber"], // REVIEW: Is TNumber intended behavior?
excludes: ["foo", "obj"], // These shouldn't show up since they're not types.
})