UNPKG

glitched-writer

Version:

Glitched, text writing module. Highly customizable settings. Decoding, decrypting, scrambling, or simply spelling out text.

17 lines (16 loc) 511 B
import GlitchedWriter from '..'; import { Callback } from '../types'; export default class Queue { writer: GlitchedWriter; isStopped: boolean; texts: string[]; isLooping: boolean; loopInterval: number; interval: number; index: number; endCallback?: Callback; constructor(writer: GlitchedWriter, texts: string[] | HTMLElement | Element | string, interval?: number, loop?: boolean | Callback | number); stop(): void; resume(): void; private loop; }