Reference · Rolls and exact odds
PlaySoundtype
Anything that makes a roll's sound: the built-in one, or a page's own.
Import it
import type { PlaySound } from "@johnmorrisdotca/korokoro";
Definition
type PlaySound = (thrown: SoundThrow) => void;
Examples
import type { PlaySound } from "@johnmorrisdotca/korokoro";
const value: PlaySound = (thrown) => console.log(thrown.dice);
console.log(typeof value);functionWhat it prints (run when this page was built)