UNPKG

changelog-guru

Version:
22 lines (21 loc) 794 B
import { ChangeType, Dependencies, Restriction } from 'package-json-helper/types/package'; import { BaseRule, IRule, IRuleConfig, IRuleModifyOptions } from './BaseRule.js'; export declare enum TemplateLiteral { Name = "%name%", Value = "%val%", PrevValue = "%pval%" } export interface IPackageStatisticRenderRuleConfig extends IRuleConfig { sections: (Dependencies | Restriction)[]; templates: { [key in ChangeType]: string; }; title: string; } export default class PackageStatisticRenderRule extends BaseRule<IPackageStatisticRenderRuleConfig> implements IRule { #private; constructor(config: IPackageStatisticRenderRuleConfig); modify({ task, context }: IRuleModifyOptions): void; private createLicenseSection; private renderChanges; }