packagedSounds関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The sounds' addresses beside the package's code, or an empty set where import.meta.url is not an address (some test runners).
インポート
import { packagedSounds } from "@johnmorrisdotca/sugoroku/play";
定義
function packagedSounds(): SoundUrls
戻り値
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).
例
import { packagedSounds } from "@johnmorrisdotca/sugoroku/play";
console.log(Object.keys(packagedSounds()));[ 'clack', 'hit', 'dice', 'cube' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。