toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-semver
/
semver
/
parse
parse
external
fun
parse
(
version
:
String
?
)
:
SemVer
?
(
source
)
external
fun
parse
(
version
:
String
?
,
optionsOrLoose
:
Boolean
=
definedExternally
)
:
SemVer
?
(
source
)
external
fun
parse
(
version
:
String
?
,
optionsOrLoose
:
Options
=
definedExternally
)
:
SemVer
?
(
source
)
external
fun
parse
(
version
:
SemVer
?
)
:
SemVer
?
(
source
)
external
fun
parse
(
version
:
SemVer
?
,
optionsOrLoose
:
Boolean
=
definedExternally
)
:
SemVer
?
(
source
)
external
fun
parse
(
version
:
SemVer
?
,
optionsOrLoose
:
Options
=
definedExternally
)
:
SemVer
?
(
source
)
Return the parsed version as a SemVer object, or null if it's not valid.