defineBoard関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Registers the default board, or a subclass under a host's custom tag. Server-safe and idempotent.
インポート
import { defineBoard } from "@johnmorrisdotca/jirai/element";
ほかのエクスポート元: @johnmorrisdotca/jirai/element/define
定義
function defineBoard(tagName?: string, registry?: CustomElementRegistry | undefined): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
tagName (省略可) | string | The custom tag name; omitted to use the package default. |
registry (省略可) | CustomElementRegistry | undefined | The custom-element registry; omitted outside a browser. |
例
import { defineBoard } from "@johnmorrisdotca/jirai/element";
defineBoard();
console.log(typeof defineBoard); // functionfunction出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。