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

1.2.2 • Public • Published

Installation

npm install --save @types/oslicense

Summary

This package contains type definitions for oslicense (https://github.com/credwards27/oslicense#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oslicense.

index.d.ts

export interface License {
    id: string;
    identifiers: Identifier[];
    keywords: string[];
    links: Link[];
    name: string;
    other_names: OtherName[];
    superseded_by: null | string;
    text: Text[];
}

export interface Identifier {
    identifier: string;
    scheme: string;
}

export interface Link {
    note: string;
    url: string;
}

export interface OtherName {
    name: string;
    note: string;
}

export interface Text {
    media_type: string;
    title: string;
    url: string;
}

/** @async */
export function getLicenses(): Promise<Record<string, string>>;
/** @async */
export function getLicenseData(id: string): Promise<License>;
/** @async */
export function getLicenseText(id: string): Promise<string>;
export function getNearestLicense(): string;

Additional Details

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

Credits

These definitions were written by Florian Imdahl.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/oslicense

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • types