aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-types/tests/console.test-d.ts
blob: 9392b7e9f9a3ba1790c6eca4e3905951bbfda1cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import * as c1 from "node:console";
import * as c2 from "console";

c1.log();
c2.log();

for await (const line of c1) {
  console.log("Received:", line);
}

for await (const line of c2) {
  console.log("Received:", line);
}

for await (const line of console) {
  console.log("Received:", line);
}

export {};