(error: unknown)
| 36 | }; |
| 37 | |
| 38 | export const parseError = (error: unknown): string => { |
| 39 | if (error instanceof Error) { |
| 40 | return error.message; |
| 41 | } |
| 42 | if (typeof error === "string") { |
| 43 | return error; |
| 44 | } |
| 45 | |
| 46 | return "An unknown error occurred"; |
| 47 | }; |
| 48 | |
| 49 | export const loginWithGithub = () => { |
| 50 | const width = 790; |
no outgoing calls
no test coverage detected