Installation
npm install --save @types/validate-npm-package-license
Summary
This package contains type definitions for validate-npm-package-license (https://github.com/kemitchell/validate-npm-package-license.js#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validate-npm-package-license.
index.d.ts
declare namespace validateLicense {
interface Result {
inFile?: string | undefined;
spdx?: true | undefined;
unlicensed?: true | undefined;
validForOldPackages: boolean;
validForNewPackages: boolean;
warnings?: string[] | undefined;
}
}
declare function validateLicense(license: string): validateLicense.Result;
export = validateLicense;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Gabriel Fournier.