Type alias ReadFileCallback<T>

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

Type Parameters

  • T = string | Buffer

Type declaration

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

      Parameters

      • err: NodeJS.ErrnoException

        error

      • Optional data: T

        contents of file

      Returns void

Generated using TypeDoc