Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 11 commits into from
Jun 8, 2023

Conversation

k-nasa
Copy link
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
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
Contributor Author

k-nasa commented Jun 7, 2023

CI seems to be falling in unrelated places..

@k-nasa
Copy link
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
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