From c8e09f563fcbc98552ef696ac70ee953bb0b9ec5 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Fri, 7 Apr 2023 04:03:06 -0700 Subject: `FileBlob` -> `BunFile`, add `BunFile.lastModified` (#2581) * Improve BunPlugin types * FileBlob -> BunFile * Update Bun.env types. Fixes #2481 * Add lastModified to BunFile --- docs/api/file-io.md | 2 +- docs/api/spawn.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/api') diff --git a/docs/api/file-io.md b/docs/api/file-io.md index 4c432300e..35d639422 100644 --- a/docs/api/file-io.md +++ b/docs/api/file-io.md @@ -233,7 +233,7 @@ interface Bun { file(path: string | number | URL, options?: { type?: string }): BunFile; write( - destination: string | number | FileBlob | URL, + destination: string | number | BunFile | URL, input: string | Blob | ArrayBuffer | SharedArrayBuffer | TypedArray | Response, ): Promise; } diff --git a/docs/api/spawn.md b/docs/api/spawn.md index 024f7cf1b..100969aa3 100644 --- a/docs/api/spawn.md +++ b/docs/api/spawn.md @@ -259,7 +259,7 @@ namespace SpawnOptions { | "ignore" | null // equivalent to "ignore" | undefined // to use default - | FileBlob + | BunFile | ArrayBufferView | number; @@ -269,7 +269,7 @@ namespace SpawnOptions { | "ignore" | null // equivalent to "ignore" | undefined // to use default - | FileBlob + | BunFile | ArrayBufferView | number | ReadableStream -- cgit v1.2.3