DefinitelyTyped/types/unique-random-array/unique-random-array-tests.ts
2018-12-03 00:26:33 +01:00

7 lines
193 B
TypeScript

import uniqueRandomArray = require('unique-random-array');
// $ExpectType () => number
uniqueRandomArray([1, 2, 3, 4]);
// $ExpectType () => string | number
uniqueRandomArray(["1", 2, 3, 4]);