toSemverString MethodStatic

Get a semver-compatible string from a padded version string. works on unpadded version strings as well if there is no write version, it will be added

toSemverString(paddedVersion: string): string

@example

Schema.toSemverString("1.02.03") === "1.2.3"

@example

Schema.toSemverString("1.01") === "1.0.1" // write version was added
@beta
Parameter Type Description
paddedVersion string  

Returns - string

Defined in

Last Updated: 14 May, 2024