npm.io
0.15.4 • Published 2 years ago

@types/legal-eagle

Licence
MIT
Version
0.15.4
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/legal-eagle

Summary

This package contains type definitions for legal-eagle (https://github.com/atom/legal-eagle).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/legal-eagle.

index.d.ts

declare function legalEagle(
    options: legalEagle.Options,
    cb: (err: Error | null, licenseSummary: legalEagle.LicenseLookup) => void,
): void;

declare namespace legalEagle {
    interface Options {
        path: string;
        overrides?: LicenseLookup | undefined;
        omitPermissive?: boolean | undefined;
    }
    interface LicenseLookup {
        [id: string]: Entry;
    }
    interface Entry {
        license: string;
        source: string;
        repository: string;
        sourceText: string;
    }
}

export = legalEagle;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0938 GMT
  • Dependencies: none

Credits

These definitions were written by Jed Fox.