packagedSoundsfunction
The sounds' addresses beside the package's code, or an empty set where import.meta.url is not an address (some test runners).
Import it
import { packagedSounds } from "@johnmorrisdotca/sugoroku/play";
Definition
function packagedSounds(): SoundUrls
Returns
Partial<Record<SoundName, string>>
The sounds' addresses beside the package's code, or an empty set where import.meta.url is not an address (some test runners).
Examples
import { packagedSounds } from "@johnmorrisdotca/sugoroku/play";
console.log(Object.keys(packagedSounds()));[ 'clack', 'hit', 'dice', 'cube' ]What it prints (run when this page was built)