Skip to the content

Hitotsu一つ

Match the colour or number, call with one card left, and play classic or party rules against computers or at a shared table.

Hitotsu is Japanese for one: the call with one card left. About the name

Contents

Reference · Card sounds

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

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 { CardSoundWindow } from "@johnmorrisdotca/hitotsu/card-sounds";


const value: CardSoundWindow = {};
console.log(value.AudioContext === undefined);
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hitotsu 1.4.0.