mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
475 B
JSON
22 lines
475 B
JSON
// === goToImplementation ===
|
|
// === /goToImplementationInterface_02.ts ===
|
|
// interface Fo/*GOTO IMPL*/o { hello: () => void }
|
|
//
|
|
// let x: number = 9;
|
|
//
|
|
// function createFoo(): Foo {
|
|
// if (x === 2) {
|
|
// return [|{
|
|
// hello() {}
|
|
// }|];
|
|
// }
|
|
// return [|{
|
|
// hello() {}
|
|
// }|];
|
|
// }
|
|
//
|
|
// let createFoo2 = (): Foo => [|({hello() {}})|];
|
|
//
|
|
// function createFooLike() {
|
|
// return {
|
|
// --- (line: 20) skipped --- |