Reference · Collections and piles: pure helpers
CollectionViewtype
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 it
import type { CollectionView } from "@johnmorrisdotca/fuda-cards/collection";
Definition
type CollectionView = "deck" | "rolodex" | "binder" | "case" | "jukebox" | "random" | "story" | "wall" | "tower" | "spotlight" | "atlas" | "fan";
Examples
import { collectionViews, type CollectionView } from "@johnmorrisdotca/fuda-cards/collection";
const view: CollectionView = "binder";
console.log(collectionViews.some((one) => one.id === view)); // truetrueWhat it prints (run when this page was built)