io.github.pidoveproject.showdown.user.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-showdown-api_3 Show documentation
Show all versions of scala-showdown-api_3 Show documentation
A Scala wrapper of Pokemon Showdown's API
The newest version!
package io.github.pidoveproject.showdown.user
import io.github.iltotore.iron.*
import io.github.iltotore.iron.constraint.all.*
opaque type AvatarName = String :| Not[Blank]
object AvatarName extends RefinedTypeOps[String, Not[Blank], AvatarName]
opaque type UserList = List[User] :| Pure
object UserList extends RefinedTypeOps[List[User], Pure, UserList]:
def from(names: User*): UserList = List(names*).assume
val empty: UserList = List.empty.assume
opaque type Username = String :| Not[Blank]
object Username extends RefinedTypeOps[String, Not[Blank], Username]