Skip to content

✨ New EmailAddress type #339

@LVMVRQUXL

Description

@LVMVRQUXL

📝 Description

We would like to introduce an experimental type named EmailAddress for all platforms with the following minimum API:

@Serializable
interface EmailAddress {
    companion object {
        val regex: Regex
        fun create(text: String): EmailAddress
        fun createOrNull(text: String): EmailAddress?
    }

    override fun equals(other: Any?): Boolean
    override fun hashCode(): Int
    override fun toString(): String
}

This type should be serializable as String.
Being experimental, the properties and functions of this type shouldn't be available yet for Java users.

✅ Checklist

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions