Home > @microsoft/rush-lib > VersionPolicyConfiguration > getVersionPolicy
VersionPolicyConfiguration.getVersionPolicy() method
Gets the version policy by its name. Throws error if the version policy is not found.
Signature:
getVersionPolicy(policyName: string): VersionPolicy;
Parameters
| Parameter | Type | Description |
|---|---|---|
| policyName | string | Name of the version policy |
Returns: