SoundNametype
THE SOUNDS OF A BOARD, optional: a checker set down, a checker hit, the dice
and the cube. The files are in the package's sounds/ folder (short WAV
clips from Kenney's "Casino Audio", Creative Commons Zero: see
sounds/CREDITS.txt) and are found beside the code with import.meta.url,
so a bundler that follows that pattern ships them. A page that serves them
from somewhere else gives their addresses.
Import it
import type { SoundName } from "@johnmorrisdotca/sugoroku/play";
Definition
type SoundName = "clack" | "hit" | "dice" | "cube";
Examples
import type { SoundName } from "@johnmorrisdotca/sugoroku/play";
const value: SoundName = "clack";
console.log(value);clackWhat it prints (run when this page was built)