Reference · The <fuda-collection> element
CollectionLivetype
Live 3D in a collection's cards: the shared cards from createLiveCards and the 3D item of a card, if it has one. See docs/live-3d.md.
Import it
import type { CollectionLive } from "@johnmorrisdotca/fuda-cards/collection-element";
Definition
interface CollectionLive {
cards: LiveCards<never>;
item(card: CollectionCard): LiveItem<never> | undefined;
}
Members
| Name | Type | Description |
|---|---|---|
cards | LiveCards<never> | |
item | (card: CollectionCard): LiveItem<never> | undefined |
Examples
import type { CollectionLive } from "@johnmorrisdotca/fuda-cards/collection-element";
import { createLiveCards } from "@johnmorrisdotca/fuda-cards/live-3d";
const live: CollectionLive = { cards: createLiveCards({ load: () => import("three") }) as never, item: () => undefined };
console.log(typeof live.item);