Skip to content

feat(node_compat): Add a write method to the FileHandle class#19385

Merged
mmastrac merged 11 commits intodenoland:mainfrom
k-nasa:k-nasa/feat_write
Jun 8, 2023
Merged

feat(node_compat): Add a write method to the FileHandle class#19385
mmastrac merged 11 commits intodenoland:mainfrom
k-nasa:k-nasa/feat_write

Conversation

@k-nasa
Copy link
Copy Markdown
Contributor

@k-nasa k-nasa commented Jun 6, 2023

WHY

ref: #19165

The FileHandle class has many missing methods compared to node.

WHAT

Add write method

@k-nasa
Copy link
Copy Markdown
Contributor Author

k-nasa commented Jun 6, 2023

Looking at the latest Node documentation, it appears that the write method accepts an option as an argument, but I don't see such a definition in DefinitelyTyped/blob/d9df51e34526f48bef4e2546a006157b391ad96c/types/node/fs.d.ts. I will investigate further at a later date.

append: Understood that it is node 17.x

@k-nasa
Copy link
Copy Markdown
Contributor Author

k-nasa commented Jun 7, 2023

CI seems to be falling in unrelated places..

@k-nasa
Copy link
Copy Markdown
Contributor Author

k-nasa commented Jun 8, 2023

@mmastrac I would be happy if you could review it. 🙏

@k-nasa k-nasa requested a review from mmastrac June 8, 2023 13:37
Copy link
Copy Markdown
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mmastrac mmastrac merged commit caad79e into denoland:main Jun 8, 2023
bartlomieju pushed a commit that referenced this pull request Jun 8, 2023
## WHY 

ref: #19165

The FileHandle class has many missing methods compared to node.

## WHAT


Add write method
@k-nasa k-nasa deleted the k-nasa/feat_write branch June 14, 2023 12:33
@kt3k kt3k mentioned this pull request Sep 10, 2024
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants