TypeScript/tests/cases/fourslash/completionsStringLiteral_fromTypeConstraint.ts
Wenlu Wang 5596ed80d7
Add replacement span for string literal (#37490)
* Add replacement span for string literal

* fix change requests

* fix lint

* Avoid flag

* Fix baseline

* ADd misising baseline
2020-04-01 17:58:16 -07:00

10 lines
292 B
TypeScript

/// <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] }
] });