kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/typescript/testdata/type_alias.ts (about)

     1  export {}
     2  
     3  //- @A defines/binding A
     4  interface A {
     5    a: number;
     6  }
     7  
     8  //- @B defines/binding B
     9  //- B.node/kind talias
    10  //- B aliases A
    11  type B = A;
    12  
    13  // Test that aliases to types with type arguments do not emit a reference edge
    14  // to anything. VName signatures of types with arguments are not qualified with
    15  // the arguments.
    16  //- @T1 defines/binding T1
    17  //- !{ T1 aliases _ }
    18  type T1 = Array<string>;
    19  //- @T2 defines/binding T2
    20  //- !{ T2 aliases _ }
    21  type T2 = Array<number>;