Skip to the content

Dominoドミノ

Deal seeded dominoes, play Mexican Train with native rules and computers, and replay a saved game.

Domino is the Japanese borrowed word ドミノ for dominoes. About the name

Contents

Reference · Sound controls

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/domino/tile-sounds";

Definition

type TileSoundWindow = {
    AudioContext?: typeof AudioContext;
    webkitAudioContext?: typeof AudioContext;
    atob?: (text: string) => string;
};

Members

NameTypeDescription
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/domino/tile-sounds";

const value: TileSoundWindow = {};
console.log(value);
{}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/domino 1.1.4.