aboutsummaryrefslogtreecommitdiff
path: root/src/modules/string
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-09-18 05:52:42 +0200
committerGitHub <[email protected]>2023-09-18 05:52:42 +0200
commitd6a4f8c2ddf9e957e875bc3fab77e496104d1320 (patch)
tree8c87a5d2baf4dfad8d96da7a4823adaf8bd005ee /src/modules/string
parentf40e217c6275ab555ecbe3ca0046526e44b31263 (diff)
downloadfaker-d6a4f8c2ddf9e957e875bc3fab77e496104d1320.tar.xz
faker-d6a4f8c2ddf9e957e875bc3fab77e496104d1320.zip
feat: split SimpleFaker class from Faker (#2369)
Diffstat (limited to 'src/modules/string')
-rw-r--r--src/modules/string/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts
index 536a1c6a..8167ebea 100644
--- a/src/modules/string/index.ts
+++ b/src/modules/string/index.ts
@@ -1,4 +1,4 @@
-import type { Faker } from '../..';
+import type { SimpleFaker } from '../..';
import { FakerError } from '../../errors/faker-error';
import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions';
import type { LiteralUnion } from '../../utils/types';
@@ -103,7 +103,7 @@ const SAMPLE_MAX_LENGTH = 2 ** 20;
* - The [`faker.helpers`](https://fakerjs.dev/api/helpers.html) module includes a number of string related methods.
*/
export class StringModule {
- constructor(private readonly faker: Faker) {
+ constructor(private readonly faker: SimpleFaker) {
bindThisToMemberFunctions(this);
}