リファレンス
国の豆知識
import { … } from "@johnmorrisdotca/kuni/trivia";
最小化と gzip 圧縮をしたサイズは 7.5 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
allTrivia | 関数 | The trivia about every country, in alpha-2 order: one object for each of the 250 codes, the list and its objects frozen and shared. |
CountryTrivia | 型 | The trivia about one country, from the /trivia entry: null where the source has none. |
trivia | 関数 | The trivia about one country, by its alpha-2 code in either case. |
TRIVIA_READ | 定数 | The day the Wikidata snapshot of the trivia was read. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。