(error: NSError)
| 124 | } |
| 125 | |
| 126 | function toHttpsError(error: NSError) { |
| 127 | let details = null; |
| 128 | if (error.domain == FIRFunctionsErrorDomain) { |
| 129 | details = error.userInfo[FIRFunctionsErrorDetailsKey]; |
| 130 | } |
| 131 | |
| 132 | return new HttpsError(errorToCode(error), error.localizedDescription, details, error); |
| 133 | } |
| 134 | |
| 135 | export class Functions implements IFunctions { |
| 136 | _native: FIRFunctions; |
no test coverage detected
searching dependent graphs…