TileSoundWindowtype
The parts of a window the sounds use: an audio context and atob. Any of them may be missing.
Import it
import type { TileSoundWindow } from "@johnmorrisdotca/jarajara/tile-sounds";
Definition
type TileSoundWindow = {
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 { TileSoundWindow } from "@johnmorrisdotca/jarajara/tile-sounds";
const value: TileSoundWindow = {};
console.log(value);{}What it prints (run when this page was built)