( user: Option.Option.Value<Effect.Effect.Success<typeof getCurrentUser>>, )
| 41 | }).pipe(Effect.withSpan("getCurrentUser")); |
| 42 | |
| 43 | export const makeCurrentUser = ( |
| 44 | user: Option.Option.Value<Effect.Effect.Success<typeof getCurrentUser>>, |
| 45 | ) => |
| 46 | CurrentUser.of({ |
| 47 | id: user.id, |
| 48 | email: user.email, |
| 49 | activeOrganizationId: user.activeOrganizationId, |
| 50 | iconUrlOrKey: Option.fromNullable(user.image), |
| 51 | }); |
| 52 | |
| 53 | export const makeCurrentUserLayer = ( |
| 54 | user: Option.Option.Value<Effect.Effect.Success<typeof getCurrentUser>>, |
no outgoing calls
no test coverage detected