aboutsummaryrefslogtreecommitdiff
path: root/src/lorem.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-02-01 17:31:52 +0100
committerGitHub <[email protected]>2022-02-01 17:31:52 +0100
commit5e6754da61b63019fd063fad26adbeeabd8b789b (patch)
tree954f7730feba92d951f66862d9165b99645f8981 /src/lorem.ts
parent18b4349af05ca671f1fc4cff0c04d359e914f001 (diff)
downloadfaker-5e6754da61b63019fd063fad26adbeeabd8b789b.tar.xz
faker-5e6754da61b63019fd063fad26adbeeabd8b789b.zip
feat(types): provide strong typing for locales (#363)
Diffstat (limited to 'src/lorem.ts')
-rw-r--r--src/lorem.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lorem.ts b/src/lorem.ts
index 9368ec01..afbc6df3 100644
--- a/src/lorem.ts
+++ b/src/lorem.ts
@@ -24,7 +24,7 @@ export class Lorem {
*/
word(length?: number): string {
const hasRightLength = (word: string) => word.length === length;
- let properLengthWords: string[];
+ let properLengthWords: readonly string[];
if (typeof length === 'undefined') {
properLengthWords = this.faker.definitions.lorem.words;
} else {