• Attempts to construct a request message of the given type. Currently all types that extend AppRequestMessage can be constructed by this function If this changes in the future and some types require extra props this function will have a return type of unknown and will need to be modified

    Type Parameters

    Parameters

    • type: T["type"]
    • source: Required<Pick<AppIdentifier, "appId" | "instanceId">>
    • payload: T["payload"]

    Returns PartialRequestMessage<T> extends T
        ? T
        : unknown