catch error as { error: string }
const a = sync () => throw new Error('ERROR');expect(await a().catch(GETERR$)).toEqual({ error:'ERROR' })
Generated using TypeDoc
catch error as { error: string }