@types/licensee
v12.0.0
Published
TypeScript definitions for licensee
Readme
Installation
npm install --save @types/licensee
Summary
This package contains type definitions for licensee (https://github.com/jslicense/licensee.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/licensee.
index.d.ts
declare function licensee(
configuration: licensee.Configuration,
path: string,
callback: (error: Error | null, results?: licensee.Result[]) => void,
): void;
declare namespace licensee {
interface LicensesConfiguration {
spdx?: string[] | undefined;
blueOak?: string | undefined;
osi?: boolean | undefined;
}
interface IgnoreScope {
scope: string;
}
interface IgnorePrefix {
prefix: string;
}
interface IgnoreAuthor {
author: string;
}
type IgnoreRule = IgnoreScope | IgnorePrefix | IgnoreAuthor;
interface Configuration {
licenses: LicensesConfiguration;
packages?: Record<string, string> | undefined;
corrections?: boolean | undefined;
ignore?: IgnoreRule[] | undefined;
productionOnly?: boolean | undefined;
filterPackages?: ((dependencies: any[]) => any[]) | undefined;
}
interface Result {
name: string;
version: string;
license: string;
author: any;
contributors: any;
repository: any;
homepage: string;
parent: any;
path: string;
approved: boolean;
corrected?: "manual" | "automatic" | undefined;
ignored?: boolean | undefined;
package?: boolean | undefined;
duplicates?: Result[] | undefined;
}
}
export = licensee;
Additional Details
- Last updated: Wed, 08 Apr 2026 21:15:22 GMT
- Dependencies: none
Credits
These definitions were written by Jamie Magee.
