DefinitelyTyped/types/faker
James Whitney 9f04b6c7c5 faker: support readonly arrayElement (#39917)
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]: d3ce6f1a2a/lib/random.js (L88)
2019-10-29 15:46:18 -07:00
..
v3
faker-tests.ts
index.d.ts
tsconfig.json
tslint.json