Home > @microsoft/rush-lib > IndividualVersionPolicy > validate
IndividualVersionPolicy.validate() method
Validates the specified version and throws if the version does not satisfy the policy.
Signature:
validate(versionString: string, packageName: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
versionString | string | version string |
packageName | string | package name |
Returns:
void