* Bind a jsdoc enum as SymbolFlags.TypeAlias and not SymbolFlags.Enum * Actually include an @enum tag as a declaration * Add enum tag refs into a couple more syntax kind lists * accept symbol baseline update
16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @allowJs: true
|
|
|
|
// @Filename: /a.js
|
|
/////** @enum {string} */
|
|
////[|const [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}E|] = { A: "" };|]
|
|
////[|E|]["A"];
|
|
/////** @type {[|E|]} */
|
|
////const e = [|E|].A;
|
|
|
|
verify.singleReferenceGroup(
|
|
`type E = string
|
|
const E: {
|
|
A: string;
|
|
}`, "E");
|