DefinePackagePolicyArgs
Defined in: policyDefiners/definePackagePolicy.ts:49
Input arguments for defining a package.json policy.
Type Parameters
Section titled “Type Parameters”J
C
Properties
Section titled “Properties”defaultConfig?
Section titled “defaultConfig?”
optionaldefaultConfig?:C
Defined in: policyDefiners/definePackagePolicy.ts:68
Optional default configuration for the policy.
description
Section titled “description”description:
string
Defined in: policyDefiners/definePackagePolicy.ts:58
A description of the policy’s purpose.
handler
Section titled “handler”handler:
PackageJsonHandler<J,C>
Defined in: policyDefiners/definePackagePolicy.ts:63
The handler function that receives the parsed package.json and policy arguments.
name:
string
Defined in: policyDefiners/definePackagePolicy.ts:53
The name of the policy.