(result: Result<UserId, string>)
| 6 | import type { Result } from 'shared/result' |
| 7 | |
| 8 | function getUser(result: Result<UserId, string>) { |
| 9 | return result.tag === 'Ok' ? result.ok : null |
| 10 | } |
| 11 | |
| 12 | export const noteRouter = { |
| 13 | getNote: publicProcedure |
no outgoing calls
no test coverage detected