smartlegal/ts/mod.licensechecker/classes.checkresult.ts

15 lines
455 B
TypeScript
Raw Normal View History

2023-10-11 23:21:12 +00:00
import * as plugins from './plugins.js';
2021-05-17 15:45:46 +00:00
export class CheckResult {
2023-10-11 23:21:12 +00:00
passingModules: plugins.smartpnpm.IPnpmLicenseResult[] = [];
failingModules: plugins.smartpnpm.IPnpmLicenseResult[] = [];
2021-05-17 15:46:59 +00:00
2023-10-11 23:21:12 +00:00
public addPassing(moduleResultArg: plugins.smartpnpm.IPnpmLicenseResult) {
2021-05-17 15:45:46 +00:00
this.passingModules.push(moduleResultArg);
}
2023-10-11 23:21:12 +00:00
public addFailing(moduleResultArg: plugins.smartpnpm.IPnpmLicenseResult) {
2021-05-17 15:45:46 +00:00
this.failingModules.push(moduleResultArg);
}
2021-05-17 15:46:59 +00:00
}