@types/brorand
Version:
TypeScript definitions for brorand
43 lines (30 loc) • 1.04 kB
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/brorand/index.d.ts)
````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](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Ilya Mochalov](https://github.com/chrootsu).