diff options
| author | Shinigami <[email protected]> | 2022-04-08 17:08:48 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-08 17:08:48 +0200 |
| commit | 7912cd0768c183bc3046074399852dc775280cb5 (patch) | |
| tree | 02bdacc9f2f06c7ebe9130ed4420534952ab0972 | |
| parent | 71a9918db88dbb0bebfac2b26888ebf8926a3704 (diff) | |
| download | faker-7912cd0768c183bc3046074399852dc775280cb5.tar.xz faker-7912cd0768c183bc3046074399852dc775280cb5.zip | |
chore: fix todo comments (#807)
| -rw-r--r-- | src/name.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/name.ts b/src/name.ts index 9ac270b3..a4b86c16 100644 --- a/src/name.ts +++ b/src/name.ts @@ -6,7 +6,7 @@ export enum Gender { male = 'male', } -// TODO @Shinigami92 21-03-2022: Remove 0 and 1 in v7 +// TODO @Shinigami92 2022-03-21: Remove 0 and 1 in v7 export type GenderType = 'female' | 'male' | 0 | 1; /** @@ -21,7 +21,7 @@ function normalizeGender( functionName?: string ): Exclude<GenderType, number> | undefined { if (gender == null || typeof gender === 'string') { - // TODO @Shinigami92 21-03-2022: Cast can be removed when we set `strict: true` + // TODO @Shinigami92 2022-03-21: Cast can be removed when we set `strict: true` return gender as Exclude<GenderType, number>; } @@ -52,7 +52,7 @@ function normalizeGender( function selectDefinition( faker: Faker, gender: GenderType | undefined, - // TODO christopher 21-03-2022: Remove fallback empty object when `strict: true` + // TODO @Shinigami92 2022-03-21: Remove fallback empty object when `strict: true` { generic, female, @@ -209,7 +209,7 @@ export class Name { lastName = lastName || this.faker.name.lastName(normalizedGender); switch (variant) { - // TODO christopher 21-03-2022: Add possibility to have a prefix together with a suffix + // TODO @Shinigami92 2022-03-21: Add possibility to have a prefix together with a suffix case 0: prefix = this.faker.name.prefix(gender); if (prefix) { @@ -279,7 +279,7 @@ export class Name { * faker.name.suffix() // 'DDS' */ suffix(): string { - // TODO christopher 21-03-2022: Add female_suffix and male_suffix + // TODO @Shinigami92 2022-03-21: Add female_suffix and male_suffix return this.faker.random.arrayElement(this.faker.definitions.name.suffix); } |
