TypeScript/tests/cases/fourslash/completionsLiterals.ts
Andy 33d0893259
Add completions from literal contextual types (#24674)
* Add completions from literal contextual types

* Remove getTypesOfUnion

* undo baseline changes
2018-06-07 15:03:19 -07:00

13 lines
278 B
TypeScript

/// <reference path="fourslash.ts" />
////const x: 0 | "one" = /**/;
verify.completions({
marker: "",
includes: [
{ name: "0", kind: "string", text: "0" },
{ name: '"one"', kind: "string", text: '"one"' },
],
isNewIdentifierLocation: true,
});