Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "fs/write-file/docs/types/index.d"

Index

Interfaces

Type aliases

Variables

Type aliases

Callback

Callback: (err: Error | null) => void

Callback invoked upon writing data to a file.

param

error object

Type declaration

    • (err: Error | null): void
    • Parameters

      • err: Error | null

      Returns void

Variables

Export assignment writeFile

writeFile: WriteFile

Asynchronously writes data to a file.

param

file path or file descriptor

param

data to write

param

options; if a string, the value is the encoding

param

callback to invoke after writing data to a file