Type Alias MapBuffers<T>

MapBuffers<T>: {
    [K in keyof T]: T[K] extends Buffer
        ? string
        : T[K]
}

Replace an object's Buffer values with strings. Useful for serialization.

Type Parameters

  • T