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

1.0.33 • Public • Published

Installation

npm install --save @types/brorand

Summary

This package contains type definitions for brorand (https://github.com/indutny/brorand).

Details

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

index.d.ts

/// <reference types="node" />

type rand = { getByte: () => number };

interface RandStatic {
    new(rand: rand): RandInstance;
}

interface RandInstance {
    rand: rand;
    generate(len: number): Buffer | Uint8Array;
}

interface BrorandStatic {
    (len: number): Buffer | Uint8Array;
    Rand: RandStatic;
}

declare namespace Brorand {}

declare let Brorand: BrorandStatic;

export = Brorand;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Ilya Mochalov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/brorand

Weekly Downloads

31,100

Version

1.0.33

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • types