UNPKG

623 BTypeScriptView Raw
1// Type definitions for validate-npm-package-license 3.0
2// Project: https://github.com/kemitchell/validate-npm-package-license.js#readme
3// Definitions by: Gabriel Fournier <https://github.com/carboneater>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6declare namespace validateLicense {
7 interface Result {
8 inFile?: string;
9 spdx?: true;
10 unlicensed?: true;
11 validForOldPackages: boolean;
12 validForNewPackages: boolean;
13 warnings?: string[];
14 }
15}
16
17declare function validateLicense(license: string): validateLicense.Result;
18
19export = validateLicense;