aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-vscode/example/example.ts
blob: 53685290266e3844a99afc4cd1cd4ed7ddeea068 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export default {
  async fetch(request: Request): Promise<Response> {
    a(request);
    const coolThing: CoolThing = new SuperCoolThing();
    coolThing.doCoolThing();
    debugger;
    return new Response("BAI BAI");
  },
};

// a
function a(request: Request): void {
  b(request);
}

// b
function b(request: Request): void {
  c(request);
}

// c
function c(request: Request) {
  console.log(request);
}

interface CoolThing {
  doCoolThing(): void;
}

class SuperCoolThing implements CoolThing {
  doCoolThing(): void {
    console.log("BLAH BLAH");
  }
}