Type Alias ReadFile<Type>

ReadFile<Type>: ((path: PathLike) => Promise<Type>)

Read a file.

Type Parameters

  • Type = unknown

    The type of the file contents.

Type declaration

    • (path): Promise<Type>
    • Parameters

      Returns Promise<Type>

      The contents of the file in the specified type.