coerce

external fun coerce(version: String?, options: CoerceOptions = definedExternally): SemVer?(source)
external fun coerce(version: Number?, options: CoerceOptions = definedExternally): SemVer?(source)
external fun coerce(version: SemVer?, options: CoerceOptions = definedExternally): SemVer?(source)

Coerces a string to SemVer if possible