function createEnvelope(headers, items) {
    if (items === void 0) { items = []; }
    return [headers, items];
}
Creates an envelope.
Make sure to always explicitly provide the generic to this function
so that the envelope types resolve correctly.