mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
512 B
TypeScript
12 lines
512 B
TypeScript
// Type definitions for d20 1.4
|
|
// Project: https://github.com/michaelenger/d20.js#readme
|
|
// Definitions by: Asai Masami <https://github.com/pipboy3000>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export as namespace d20;
|
|
|
|
export function roll(dice: string|number, verbose?: boolean): number;
|
|
export function roll(dice: string|number, verbose: false): number;
|
|
export function roll(dice: string|number, verbose: true): number[];
|
|
export function verboseRoll(dice: string|number): number[];
|