Skip to content

Commit faedbf0

Browse files
committed
Update bun.d.ts
1 parent b08d3b2 commit faedbf0

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

types/bun/bun.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/**
2+
*
3+
* Bun.js runtime APIs
4+
*
5+
* @example
6+
*
7+
* ```js
8+
* import {file} from 'bun';
9+
*
10+
* // Log the file to the console
11+
* const input = await file('/path/to/file.txt').text();
12+
* console.log(input);
13+
* ```
14+
*
15+
* This module aliases `globalThis.Bun`.
16+
*
17+
*/
118
declare module "bun" {
219
/**
320
* Start a fast HTTP server.

0 commit comments

Comments
 (0)