aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-10 05:16:06 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-10 05:16:06 -0700
commitfaedbf0a61a320933e6c63f6365a8fdd018a8478 (patch)
tree28857ba03ec8071e8c70956824bdb9b08e873b1a /types
parentb08d3b2cd6d3d946b936839c27418566cf8b2f15 (diff)
downloadbun-v0.0.78.tar.gz
bun-v0.0.78.tar.zst
bun-v0.0.78.zip
Update bun.d.tsbun-v0.0.78
Diffstat (limited to 'types')
-rw-r--r--types/bun/bun.d.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/types/bun/bun.d.ts b/types/bun/bun.d.ts
index 2ce763b91..2784ace5b 100644
--- a/types/bun/bun.d.ts
+++ b/types/bun/bun.d.ts
@@ -1,3 +1,20 @@
+/**
+ *
+ * Bun.js runtime APIs
+ *
+ * @example
+ *
+ * ```js
+ * import {file} from 'bun';
+ *
+ * // Log the file to the console
+ * const input = await file('/path/to/file.txt').text();
+ * console.log(input);
+ * ```
+ *
+ * This module aliases `globalThis.Bun`.
+ *
+ */
declare module "bun" {
/**
* Start a fast HTTP server.