defineBoardfunction
Register a standard or custom board tag, preserving a definition. Safe without a browser.
Import it
import { defineBoard } from "@johnmorrisdotca/tsunagi/element";
Also exported from: @johnmorrisdotca/tsunagi/element/define
Definition
function defineBoard(tag?: string): void
Parameters
| Name | Type | Description |
|---|---|---|
tag (optional) | string | The custom tag name; omitted to use the package default. |
Examples
import { defineBoard } from "@johnmorrisdotca/tsunagi/element";
defineBoard();
console.log(typeof defineBoard); // functionfunctionWhat it prints (run when this page was built)