Type alias ReadDirCallback<T>

ReadDirCallback<T>: ((err, files?) => void)

Type Parameters

  • T = string[] | Buffer[] | Dirent[]

Type declaration

    • (err, files?): void
    • Get results of readdir().

      Parameters

      • err: NodeJS.ErrnoException

        error

      • Optional files: T

        contents of directory

      Returns void

Generated using TypeDoc