mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
468 B
JSON
17 lines
468 B
JSON
// === Code Lenses ===
|
|
// === /codeLensOverloads01.ts ===
|
|
//
|
|
// export function /*CODELENS: 3 references*/foo(x: number): number;
|
|
// export function foo(x: string): string;
|
|
// export function foo(x: string | number): string | number {
|
|
// return x;
|
|
// }
|
|
//
|
|
// [|foo|](1);
|
|
//
|
|
// [|foo|]("hello");
|
|
//
|
|
// // This one isn't expected to match any overload,
|
|
// // but is really just here to test how it affects how code lens.
|
|
// [|foo|](Math.random() ? 1 : "hello");
|
|
// |