// shared/src/shared.gleam
import gleam/time/timestamp.{type Timestamp}
pub type ApiErrorCode {
InvalidFormCode
InternalError
}
pub type ApiError {
ApiError(code: ApiErrorCode, message: String)
}
pub type Signup {
Signup(email: String, name: String, password: String)
}
pub type User {
User(
id: Int,
email: String,
name: String,
password_hash: String,
created_at: Timestamp,
updated_at: Timestamp,
)
}
do you guys think that grouping shared types together is a valid case of not grouping by domain?