( tryF: () => Return, catchReturn?: Return, )
| 147 | }; |
| 148 | |
| 149 | export const tryReturn = <Return>( |
| 150 | tryF: () => Return, |
| 151 | catchReturn?: Return, |
| 152 | ): Return | void => { |
| 153 | try { |
| 154 | return tryF(); |
| 155 | } catch { |
| 156 | /*! istanbul ignore next */ |
| 157 | return catchReturn; |
| 158 | } |
| 159 | }; |
| 160 | |
| 161 | export const tryCatch = async <Return>( |
| 162 | action: () => Return | Promise<Return>, |
no outgoing calls
no test coverage detected
searching dependent graphs…