mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
This PR adds the ability for the [`random.arrayElement`][1] method to support
`readonly` Arrays.
Since the logic of the method is merely selecting an item at random, and
not affecting the passed in Array, it is safe to add these types.
The other methods that act upon a supplied Array do not guarantee the
same level of immutability.
[1]:
|
||
|---|---|---|
| .. | ||
| v3 | ||
| faker-tests.ts | ||
| index.d.ts | ||
| tsconfig.json | ||
| tslint.json | ||