export interface UserContext {
readonly userId: number;
}
export const UserContext = Context.GenericTag<UserContext>("UserContext");
program.pipe(
Effect.provideService(UserContext, userContextData.value)
)
export interface UserContext {
readonly userId: number;
}
export const UserContext = Context.GenericTag<UserContext>("UserContext");
program.pipe(
Effect.provideService(UserContext, userContextData.value)
)