kotools / types

Explicit types for Kotlin Multiplatform.
https://types.kotools.org
MIT License
90 stars 6 forks source link

✨ New constructors for `EmailAddress` #687

Closed LVMVRQUXL closed 3 months ago

LVMVRQUXL commented 3 months ago

πŸ“ Description

We want to introduce the EmailAddress(String) and the EmailAddress(String, String) constructors for replacing the fromString(Any) and the fromString(Any, Any) functions from the EmailAddress.Companion experimental type.

class EmailAddress {
    constructor(text: String)
    constructor(text: String, pattern: String)
}

βœ… Checklist