@atomist/sdm-pack-aspect
Version:
an Atomist SDM Extension Pack for visualizing drift across an organization
27 lines • 894 B
TypeScript
import { Aspect, FP } from "@atomist/sdm-pack-fingerprints";
export declare const NoLicense = "None";
export declare const LicenseType = "license";
export declare function hasNoLicense(ld: LicenseData): boolean;
export declare function isLicenseFingerprint(fp: FP): fp is FP<LicenseData>;
export interface LicenseData {
path: string;
/**
* What we've classified the license as by parsing the license file.
*/
classification: string;
content?: string;
}
/**
* License aspect. Every repository gets a license fingerprint, which may have unknown
* as a license.
*/
export declare const License: Aspect<LicenseData>;
export declare const LicensePresenceType: string;
/**
* Does this repository have a license?
* Works with data from the license aspect.
*/
export declare const LicensePresence: Aspect<{
present: boolean;
}>;
//# sourceMappingURL=license.d.ts.map