TenkaDrawn型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Something a dressing drew: the element to put on the table, and what to do when the table takes it away again (stop a timer, say).
インポート
import type { TenkaDrawn } from "@johnmorrisdotca/tenka/ui";
ほかのエクスポート元: @johnmorrisdotca/tenka/dressing
定義
type TenkaDrawn = {
readonly element: Element;
readonly destroy?: () => void;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
element | Element | What goes on the table. |
destroy (省略可) | (() => void) | undefined | Called once when the table draws it again or goes. Left out when there is nothing to stop. |
例
import type { TenkaDrawn } from "@johnmorrisdotca/tenka/ui";
const value: TenkaDrawn = {element:document.createElement("span")};
console.log(value);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。