Skip to the content

Tane種

Reproduce numbers from a seed, shuffle or pick items, share a daily puzzle and resume a saved stream.

Tane means seed in Japanese. About the name

Contents

Reference · Picker element

TanePickDetailtype

Native event detail: list indices instead of names or other item text.

Import it

import type { TanePickDetail } from "@johnmorrisdotca/tane/element";

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

Definition

type TanePickDetail = {
    seed: number | null;
    mode: TanePickerMode;
    indices: number[];
    groups: number[][];
};

Members

NameTypeDescription
seednumber | null
modeTanePickerMode
indicesnumber[]
groupsnumber[][]

Examples

import type { TanePickDetail } from "@johnmorrisdotca/tane/element";
const result: TanePickDetail = { seed: 1, mode: "pick", indices: [0], groups: [] };
console.log(result.indices);
[ 0 ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tane 1.3.0.