Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Cards, hands and piles

defineHandfunction

Register a hand under its standard tag or a host-supplied tag. Safe when no browser is present.

Import it

import { defineHand } from "@johnmorrisdotca/toranpu/element";

Also exported from: @johnmorrisdotca/toranpu/element/define

Definition

function defineHand(tag?: "toranpu-hand"): void

Parameters

NameTypeDescription
tag (optional)"toranpu-hand"

The tag to register, toranpu-hand by default.

Examples

import { defineHand } from "@johnmorrisdotca/toranpu/element";
defineHand();
console.log(typeof defineHand);
function

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.