Interface IAdapter<T>

Use to read and write data of type T

Type Parameters

  • T

Hierarchy

Implemented by

Properties

Properties

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