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