Type alias UcSerializer<T>

UcSerializer<in T>: ((stream, value, options?) => Promise<void>)

Type Parameters

  • in T

    Serialized data type.

Type declaration

    • (stream, value, options?): Promise<void>
    • Data serializer signature.

      Writes the given data value to the given stream.

      Serializers generated by compiler.

      Parameters

      • stream: WritableStream<Uint8Array>

        Writable stream to serialize the data to.

      • value: T

        Data value to serialize.

      • Optional options: UcSerializer.Options

        Serialization options.

        Optional

      Returns Promise<void>

      Promise resolved when data serialized.

Generated using TypeDoc