@types/validate-npm-package-license
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/validate-npm-package-license

Weekly Downloads

6,126

Version

3.0.3

License

MIT

Unpacked Size

3.52 kB

Total Files

5

Last publish

Collaborators

  • types