CollectionView型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The name of a display of <fuda-collection>: the view attribute's values. jukebox and tower are older names that open the deck (see
collectionViewAliases).
インポート
import type { CollectionView } from "@johnmorrisdotca/fuda-cards/collection";
定義
type CollectionView = "deck" | "rolodex" | "binder" | "case" | "jukebox" | "random" | "story" | "wall" | "tower" | "spotlight" | "atlas" | "fan";
例
import { collectionViews, type CollectionView } from "@johnmorrisdotca/fuda-cards/collection";
const view: CollectionView = "binder";
console.log(collectionViews.some((one) => one.id === view)); // truetrue出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。