AddOptionstype
What a card brings when it is added: the picture it already has.
Import it
import type { AddOptions } from "@johnmorrisdotca/fuda-cards/live-3d";
Definition
interface AddOptions {
still?: HTMLImageElement;
}
Members
| Name | Type | Description |
|---|---|---|
still (optional) | HTMLImageElement | undefined | A picture the card already has (an |
Examples
import type { AddOptions } from "@johnmorrisdotca/fuda-cards/live-3d";
const withPicture = (still: HTMLImageElement): AddOptions => ({ still });
console.log(typeof withPicture);