AddOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a card brings when it is added: the picture it already has.
インポート
import type { AddOptions } from "@johnmorrisdotca/fuda-cards/live-3d";
定義
interface AddOptions {
still?: HTMLImageElement;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
still (省略可) | HTMLImageElement | undefined | A picture the card already has (an |
例
import type { AddOptions } from "@johnmorrisdotca/fuda-cards/live-3d";
const withPicture = (still: HTMLImageElement): AddOptions => ({ still });
console.log(typeof withPicture);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。