DefinitelyTyped/types/math-random/math-random-tests.ts
Richie Bendall d05a9de5c6
feat: Add typings for math-random (#42082)
* feat: Add typings for math-random

Signed-off-by: Richie Bendall <richiebendall@gmail.com>

* fix: `cryptographic` should be true | undefined

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-02-05 10:51:24 -08:00

5 lines
139 B
TypeScript

import mathRandom = require("math-random");
mathRandom(); // $ExpectType number
mathRandom.cryptographic; // $ExpectType true | undefined