function formatView codeformat(semver: SemVer): stringFormat a SemVer object into a string. If any number is NaN then NaN will be printed. If any number is positive or negative infinity then '∞' or '⧞' will be printed instead. Parameterssemver: SemVerView codeThe semantic version to format Return TypestringView codeThe string representation of a semantic version.