CardSoundWindowtype
The parts of a window the sounds use: an audio context and atob. Any of them may be missing.
Import it
import type { CardSoundWindow } from "@johnmorrisdotca/hitotsu/card-sounds";
Definition
type CardSoundWindow = {
AudioContext?: typeof AudioContext;
webkitAudioContext?: typeof AudioContext;
atob?: (text: string) => string;
};
Members
| Name | Type | Description |
|---|---|---|
AudioContext (optional) | { new (contextOptions?: AudioContextOptions): AudioContext; prototype: AudioContext; } | undefined | |
webkitAudioContext (optional) | { new (contextOptions?: AudioContextOptions): AudioContext; prototype: AudioContext; } | undefined | |
atob (optional) | ((text: string) => string) | undefined |
Examples
import type { CardSoundWindow } from "@johnmorrisdotca/hitotsu/card-sounds";
const value: CardSoundWindow = {};
console.log(value.AudioContext === undefined);trueWhat it prints (run when this page was built)