Icard/angular-clarity-master(work.../node_modules/license-webpack-plugin/dist/PluginLicensePolicy.d.ts

15 lines
874 B
TypeScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
import { LicensePolicy } from './LicensePolicy';
import { LicenseTestRunner } from './LicenseTestRunner';
declare class PluginLicensePolicy implements LicensePolicy {
private licenseTester;
private unacceptableLicenseTester;
private unacceptableLicenseHandler;
private missingLicenseTextHandler;
constructor(licenseTester: LicenseTestRunner, unacceptableLicenseTester: LicenseTestRunner, unacceptableLicenseHandler: (packageName: string, licenseType: string) => void, missingLicenseTextHandler: (packageName: string, licenseType: string) => void);
isLicenseWrittenFor(licenseType: string): boolean;
isLicenseUnacceptableFor(licenseType: string): boolean;
handleUnacceptableLicense(packageName: string, licenseType: string): void;
handleMissingLicenseText(packageName: string, licenseType: string): void;
}
export { PluginLicensePolicy };