1 | # Installation
|
2 | > `npm install --save @types/brorand`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for brorand (https://github.com/indutny/brorand).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/brorand.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/brorand/index.d.ts)
|
10 | ````ts
|
11 | /// <reference types="node" />
|
12 |
|
13 | type rand = { getByte: () => number };
|
14 |
|
15 | interface RandStatic {
|
16 | new(rand: rand): RandInstance;
|
17 | }
|
18 |
|
19 | interface RandInstance {
|
20 | rand: rand;
|
21 | generate(len: number): Buffer | Uint8Array;
|
22 | }
|
23 |
|
24 | interface BrorandStatic {
|
25 | (len: number): Buffer | Uint8Array;
|
26 | Rand: RandStatic;
|
27 | }
|
28 |
|
29 | declare namespace Brorand {}
|
30 |
|
31 | declare let Brorand: BrorandStatic;
|
32 |
|
33 | export = Brorand;
|
34 |
|
35 | ````
|
36 |
|
37 | ### Additional Details
|
38 | * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
39 | * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
40 |
|
41 | # Credits
|
42 | These definitions were written by [Ilya Mochalov](https://github.com/chrootsu).
|
43 |
|
\ | No newline at end of file |