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.