ownCreditfunction
The credit of one of the package's own sources, for the part of a page the door does not draw: the bright stars of the Yale catalogue are drawn from the main entry, so a page puts ownCredit("yale-bsc", count) first in its credit line.
Import it
import { ownCredit } from "@johnmorrisdotca/hoshi-stars/door";
Definition
function ownCredit(id: string, used: number): Credit
Parameters
| Name | Type | Description |
|---|---|---|
id | string |
|
used | number | How many marks were drawn from it. |
Returns
Credit
The credit, marked as the package's own.
Examples
import { creditLine, ownCredit } from "@johnmorrisdotca/hoshi-stars/door";
console.log(creditLine([ownCredit("yale-bsc", 5080)], "en"));Bright stars: Yale Bright Star Catalogue, D. Hoffleit and W. H. Warren Jr. (1991), via NASA HEASARC (Public domain).What it prints (run when this page was built)