parameter soundConfig is now optionnal

if user call mySound.play() the sound will be played with the base SoundConfig
This commit is contained in:
DESKTOP-FMM8UI0\CLV 2021-04-23 17:03:17 +02:00
parent f03f8076f3
commit b79d76fc2e
3 changed files with 37 additions and 18 deletions

View file

@ -15,7 +15,7 @@ const isSoundConfig =
export const isPlaySoundEvent =
new tg.IsInterface().withProperties({
url: tg.isString,
config : isSoundConfig,
config : tg.isOptional(isSoundConfig),
}).get();
/**