Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...

    Type Alias Envelope<T>

    Our specific message envelope.

    Since we will be implementing request-response protocol, we include an extra field of responseId event that should be used to listen to responses (if expected).

    type Envelope<T> = {
        data: T;
        responseId: string;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    data: T
    responseId: string