mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Add definitions for unique-random
This commit is contained in:
parent
6f6e5c7dd9
commit
0263c96c06
5
unique-random/unique-random-tests.ts
Normal file
5
unique-random/unique-random-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/// <reference path="./unique-random.d.ts" />
|
||||
|
||||
import uniqueRandom = require("unique-random");
|
||||
const rand = uniqueRandom(1, 10);
|
||||
const num: number = rand();
|
||||
10
unique-random/unique-random.d.ts
vendored
Normal file
10
unique-random/unique-random.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
// Type definitions for unique-random
|
||||
// Project: https://github.com/sindresorhus/unique-random
|
||||
// Definitions by: Yuki Kokubun <https://github.com/Kuniwak>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "unique-random" {
|
||||
function uniqueRandom(min: number, max: number): () => number;
|
||||
|
||||
export = uniqueRandom;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user