@types/d20
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

Installation

npm install --save @types/d20

Summary

This package contains type definitions for d20 (https://github.com/michaelenger/d20.js#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d20.

index.d.ts

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[];

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Asai Masami.

/@types/d20/

    Package Sidebar

    Install

    npm i @types/d20

    Weekly Downloads

    6

    Version

    1.4.3

    License

    MIT

    Unpacked Size

    3.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • types