mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
brorand: tests added
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/// <reference path="./brorand.d.ts" />
|
||||
|
||||
import * as brorand from 'brorand';
|
||||
|
||||
{
|
||||
let result: Buffer|Uint8Array = brorand(42);
|
||||
}
|
||||
|
||||
{
|
||||
let Rand = new brorand.Rand({getByte: () => 255});
|
||||
let rand: {getByte: () => number} = Rand.rand;
|
||||
let result: Buffer|Uint8Array = Rand.generate(42);
|
||||
}
|
||||
Reference in New Issue
Block a user