| 1 | import * as Context from "effect/Context"; |
| 2 | import * as Schema from "effect/Schema"; |
| 3 | |
| 4 | export const User = Schema.Struct({ |
| 5 | id: Schema.String, |
| 6 | name: Schema.String, |
| 7 | email: Schema.String, |
| 8 | }); |
| 9 | |
| 10 | export class CurrentUser extends Context.Service< |
| 11 | CurrentUser, |
| 12 | typeof User.Type |
| 13 | >()("app/CurrentUser") {} |