defineDie関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Register <korokoro-die>, as that tag unless another is asked for. Safe to call more than once; does nothing where there are no custom elements.
インポート
import { defineDie } from "@johnmorrisdotca/korokoro/element";
ほかのエクスポート元: @johnmorrisdotca/korokoro/element/define
定義
function defineDie(tag?: string): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
tag (省略可) | string | The custom tag name; omitted to use the package default. |
例
import { defineDie } from "@johnmorrisdotca/korokoro/element";
defineDie();
console.log(typeof defineDie); // functionfunction出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。