core.checkifvalidmedplumversion | Medplum

checkIfValidMedplumVersion() function

Tests that a given version string is a valid existing Medplum release version.

Signature:

export declare function checkIfValidMedplumVersion(appName: string, version: string): Promise<boolean>;

Parameters

Parameter Type Description
appName string The name of the app to check the version for.
version string A version to be checked against the existing Medplum repo releases.

Returns:

Promise

true if version is a valid semver version that corresponds to an existing release, otherwise false.