aboutsummaryrefslogtreecommitdiff
path: root/src/modules/helpers
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-02-01 14:04:18 +0100
committerGitHub <[email protected]>2023-02-01 14:04:18 +0100
commit5b705d4b047640e91b690566d6e0fdbae17bb842 (patch)
treea179a77cca1b72e2c730607def2786a5531b531f /src/modules/helpers
parentbe77179faf097383763eaa6414cf7b6a1a8b131a (diff)
downloadfaker-5b705d4b047640e91b690566d6e0fdbae17bb842.tar.xz
faker-5b705d4b047640e91b690566d6e0fdbae17bb842.zip
infra: configure lint rule array-type (#1793)
Diffstat (limited to 'src/modules/helpers')
-rw-r--r--src/modules/helpers/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts
index a4ecdf71..c22a3612 100644
--- a/src/modules/helpers/index.ts
+++ b/src/modules/helpers/index.ts
@@ -284,7 +284,7 @@ export class HelpersModule {
* @since 2.0.1
*/
shuffle<T>(
- list: readonly T[],
+ list: ReadonlyArray<T>,
options?: {
/**
* Whether to shuffle the array in place or return a new array.
@@ -351,7 +351,7 @@ export class HelpersModule {
*
* @since 6.0.0
*/
- uniqueArray<T>(source: readonly T[] | (() => T), length: number): T[] {
+ uniqueArray<T>(source: ReadonlyArray<T> | (() => T), length: number): T[] {
if (Array.isArray(source)) {
const set = new Set<T>(source);
const array = Array.from(set);