Licencetype
A licence: its name and a link are always shown beside the credit. *
Import it
import type { Licence } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface Licence {
name: string;
nameJa?: string;
url: string;
spdx?: string;
nonCommercial?: boolean;
shareAlike?: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | |
nameJa (optional) | string | undefined | The name in Japanese, for a Japanese credit line: a source's own terms ( |
url | string | |
spdx (optional) | string | undefined | An SPDX identifier, when there is one. |
nonCommercial (optional) | boolean | undefined | |
shareAlike (optional) | boolean | undefined |
Examples
import type { Licence } from "./data-door.ts";
const licence: Licence = { name: "CC BY 4.0", url: "https://creativecommons.org/licenses/by/4.0/", spdx: "CC-BY-4.0" };