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
| Name | Type | Description |
|---|---|---|
seed | number | null | |
mode | TanePickerMode | |
indices | number[] | |
groups | number[][] |
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)