Home > @microsoft/rush-lib > LockStepVersionPolicy > validate
LockStepVersionPolicy.validate() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Validates the specified version and throws if the version does not satisfy lockstep version.
Signature:
validate(versionString: string, packageName: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
versionString | string | version string |
packageName | string | package name |
Returns:
void