TypeScript/tests/cases/fourslash/server/jsdocTypedefTagGoToDefinition.ts
2017-10-18 15:49:46 -07:00

26 lines
570 B
TypeScript

/// <reference path="../fourslash.ts"/>
// @allowNonTsExtensions: true
// @Filename: jsdocCompletion_typedef.js
//// /**
//// * @typedef {Object} Person
//// * @property {string} /*1*/personName
//// * @property {number} personAge
//// */
////
//// /**
//// * @typedef {{ /*2*/animalName: string, animalAge: number }} Animal
//// */
////
//// /** @type {Person} */
//// var person; person.[|personName/*3*/|]
////
//// /** @type {Animal} */
//// var animal; animal.[|animalName/*4*/|]
verify.goToDefinition({
3: "1",
4: "2"
});