TypeScript/tests/cases/fourslash/completionsStringLiteral_fromTypeConstraint.ts

10 lines
292 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
////interface Foo { foo: string; bar: string; }
////type T = Pick<Foo, "[|/**/|]">;
verify.completions({ marker: "", exact: [
{ name: "foo", replacementSpan: test.ranges()[0] },
{ name: "bar", replacementSpan: test.ranges()[0] }
] });