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.