PlayCardSoundOptionstype
How one sound is played.
Import it
import type { PlayCardSoundOptions } from "@johnmorrisdotca/hitotsu/card-sounds";
Definition
type PlayCardSoundOptions = {
count?: number;
gap?: number;
delay?: number;
};
Members
| Name | Type | Description |
|---|---|---|
count (optional) | number | undefined | How many cards: |
gap (optional) | number | undefined | Milliseconds between one card's sound and the next. Unless said, 85. |
delay (optional) | number | undefined | Milliseconds to wait before the first. Unless said, none. |
Examples
import type { PlayCardSoundOptions } from "@johnmorrisdotca/hitotsu/card-sounds";
const value: PlayCardSoundOptions = { count: 3, gap: 80, delay: 20 };
console.log(value.count);3What it prints (run when this page was built)