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
- core/backend/src/Schema.ts Line 37
Last Updated: 14 May, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.