UNPKG

dice-typescript

Version:

A TypeScript library for parsing dice rolling expressions, most commonly used in tabletop RPGs.

11 lines (10 loc) 361 B
import { CharacterStream } from './character-stream.interface'; export declare class StringCharacterStream implements CharacterStream { private readonly input; private index; constructor(input: string); getCurrentPosition(): number; getNextCharacter(): string; getCurrentCharacter(): string; peekNextCharacter(): string; }