Skip to content

Commit

Permalink
Add 'stat' and 'delete' methods to BunFile type
Browse files Browse the repository at this point in the history
  • Loading branch information
cainba committed Jan 10, 2025
1 parent ccc7bde commit 61b2d49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/bun-types/bun.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,16 @@ declare module "bun" {
* Deletes the file.
*/
unlink(): Promise<void>;

/**
* Deletes the file.
*/
delete(): Promise<void>

/**
* Provides useful information about the file.
*/
stat(): Stats
}
interface NetworkSink extends FileSink {
/**
Expand Down

0 comments on commit 61b2d49

Please sign in to comment.