1.2.2 • Published 6 months ago

@types/oslicense v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for oslicense 1.2
// Project: https://github.com/credwards27/oslicense#readme
// Definitions by: Florian Imdahl <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Mon, 11 Oct 2021 18:01:18 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Florian Imdahl.

1.2.2

6 months ago

1.2.1

7 months ago

1.2.0

3 years ago