Reference · Embedded roller and die
defineDiefunction
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 it
import { defineDie } from "@johnmorrisdotca/korokoro/element";
Also exported from: @johnmorrisdotca/korokoro/element/define
Definition
function defineDie(tag?: string): void
Parameters
| Name | Type | Description |
|---|---|---|
tag (optional) | string | The custom tag name; omitted to use the package default. |
Examples
import { defineDie } from "@johnmorrisdotca/korokoro/element";
defineDie();
console.log(typeof defineDie); // functionfunctionWhat it prints (run when this page was built)