function parseView codeparse(version: string): SemVerAttempt to parse a string as a semantic version, returning either a SemVer object or throws a TypeError. Parametersversion: stringView codeThe version string to parse Return TypeSemVerView codeA valid SemVer