@ozdemirburak/morse-code-translator
Version:
Morse code translator helps you convert text to Morse code and vice versa, with the option to play Morse code audio.
27 lines (23 loc) • 547 B
TypeScript
interface Window {
webkitAudioContext: typeof AudioContext
webkitOfflineAudioContext: typeof OfflineAudioContext
}
type Characters = Record<string, Record<string, string>>
interface Oscillator {
type?: OscillatorType;
frequency?: number;
onended?: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
}
interface Options {
dash: string;
dot: string;
space: string;
separator: string;
invalid: string;
priority: number;
wpm?: number;
unit: number;
fwUnit: number;
volume: number;
oscillator: Oscillator
}