(headers: E[0], items: E[1] = [])
| 26 | * so that the envelope types resolve correctly. |
| 27 | */ |
| 28 | export function createEnvelope<E extends Envelope>(headers: E[0], items: E[1] = []): E { |
| 29 | return [headers, items] as E; |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Add an item to an envelope. |
no outgoing calls