Interface IFileAdapter<T>

Use to read and write data of type T

Type Parameters

  • T

Hierarchy

Implemented by

Properties

filename: string

Name of the file used by the file adapter

readAsync: (() => Promise<null | T>)

Type declaration

    • (): Promise<null | T>
    • Read the data from the medium

      Returns Promise<null | T>

writeAsync: ((data) => Promise<void>)

Type declaration

    • (data): Promise<void>
    • Write date into the medium

      Parameters

      • data: T

      Returns Promise<void>

Generated using TypeDoc