(response: Response, label: string)
| 91 | } |
| 92 | |
| 93 | export async function emailBisonArrayData(response: Response, label: string): Promise<unknown[]> { |
| 94 | const data = await emailBisonData<unknown[]>(response) |
| 95 | if (!Array.isArray(data)) { |
| 96 | throw new Error(`Email Bison response did not include a valid ${label} array`) |
| 97 | } |
| 98 | return data |
| 99 | } |
| 100 | |
| 101 | export async function emailBisonRecordData(response: Response, label: string): Promise<unknown> { |
| 102 | const data = await emailBisonData<unknown>(response) |
no outgoing calls
no test coverage detected