mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Add definitions for unique-random
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/// <reference path="./unique-random.d.ts" />
|
||||
|
||||
import uniqueRandom = require("unique-random");
|
||||
const rand = uniqueRandom(1, 10);
|
||||
const num: number = rand();
|
||||
Vendored
+10
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user