Reference · Rolls and exact odds
RollSoundtype
The tray's own sound: play for each throw, close when the tray goes.
Import it
import type { RollSound } from "@johnmorrisdotca/korokoro";
Definition
type RollSound = {
play: PlaySound;
close(): void;
};
Members
| Name | Type | Description |
|---|---|---|
play | PlaySound | |
close | (): void |
Examples
import type { RollSound } from "@johnmorrisdotca/korokoro";
import { createRollSound } from "@johnmorrisdotca/korokoro";
const value: RollSound = createRollSound(undefined);
console.log(Object.keys(value));[ 'play', 'close' ]What it prints (run when this page was built)