Type alias ReadDirCallback<T>

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

Type Parameters

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

Type declaration

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

      Parameters

      • err: NodeJS.ErrnoException

        error

      • Optional files: T

        contents of directory

      Returns void

Generated using TypeDoc