Skip to content

Commit

Permalink
Wrap return type as promise
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Nov 4, 2024
1 parent 30bde7a commit 56cf7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/node/polyfills/internal/fs/handle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class FileHandle extends EventEmitter {
stat(): Promise<Stats>;
stat(options: { bigint: false }): Promise<Stats>;
stat(options: { bigint: true }): Promise<BigIntStats>;
stat(options?: { bigint: boolean }): Stats | BigIntStats {
stat(options?: { bigint: boolean }): Promise<Stats | BigIntStats> {
return promises.fstat(this.fd, options);
}
}
Expand Down

0 comments on commit 56cf7a7

Please sign in to comment.