UNPKG

671 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 | undefined;
9 spdx?: true | undefined;
10 unlicensed?: true | undefined;
11 validForOldPackages: boolean;
12 validForNewPackages: boolean;
13 warnings?: string[] | undefined;
14 }
15}
16
17declare function validateLicense(license: string): validateLicense.Result;
18
19export = validateLicense;