Type alias ReadFileCallback<T>

ReadFileCallback<T>: ((err, data?) => void)

Type Parameters

  • T = string | Buffer

Type declaration

    • (err, data?): void
    • Get results of readFile().

      Parameters

      • err: NodeJS.ErrnoException

        error

      • Optional data: T

        contents of file

      Returns void

Generated using TypeDoc