Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
874 bytes
|
Line | |
---|
1 | import { LicensePolicy } from './LicensePolicy';
|
---|
2 | import { LicenseTestRunner } from './LicenseTestRunner';
|
---|
3 | declare class PluginLicensePolicy implements LicensePolicy {
|
---|
4 | private licenseTester;
|
---|
5 | private unacceptableLicenseTester;
|
---|
6 | private unacceptableLicenseHandler;
|
---|
7 | private missingLicenseTextHandler;
|
---|
8 | constructor(licenseTester: LicenseTestRunner, unacceptableLicenseTester: LicenseTestRunner, unacceptableLicenseHandler: (packageName: string, licenseType: string) => void, missingLicenseTextHandler: (packageName: string, licenseType: string) => void);
|
---|
9 | isLicenseWrittenFor(licenseType: string): boolean;
|
---|
10 | isLicenseUnacceptableFor(licenseType: string): boolean;
|
---|
11 | handleUnacceptableLicense(packageName: string, licenseType: string): void;
|
---|
12 | handleMissingLicenseText(packageName: string, licenseType: string): void;
|
---|
13 | }
|
---|
14 | export { PluginLicensePolicy };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.