1// 1.Normal Case
2/**
3 * @param p { import("./a").Pet }
4 */
5function walk(p) {
6 console.log(`Walking ${p.name}...`);
7}
8
9// 2.Alias Type
10/**
11 * @typedef { import("./a").Pet } Pet
12 */
13
14/**
15 * @type {Pet}
16 */
17var myPet;
18myPet.name;
19
20// 3.Refer Inferred Type
21/**
22 * @type {typeof import("./a").x }
23 */
24var x = require("./a").x;