aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/airline/index.ts2
-rw-r--r--src/modules/color/index.ts8
-rw-r--r--src/modules/person/index.ts2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/airline/index.ts b/src/modules/airline/index.ts
index aeeb4873..14653bc8 100644
--- a/src/modules/airline/index.ts
+++ b/src/modules/airline/index.ts
@@ -210,7 +210,7 @@ export class AirlineModule {
* @since 8.0.0
*/
aircraftType(): AircraftType {
- return this.faker.helpers.objectValue(Aircraft);
+ return this.faker.helpers.enumValue(Aircraft);
}
/**
diff --git a/src/modules/color/index.ts b/src/modules/color/index.ts
index 5100776a..4d69ebf5 100644
--- a/src/modules/color/index.ts
+++ b/src/modules/color/index.ts
@@ -211,8 +211,8 @@ export class ColorModule {
*
* @since 7.0.0
*/
- cssSupportedFunction(): string {
- return this.faker.helpers.objectValue(CssFunction);
+ cssSupportedFunction(): CssFunctionType {
+ return this.faker.helpers.enumValue(CssFunction);
}
/**
@@ -223,8 +223,8 @@ export class ColorModule {
*
* @since 7.0.0
*/
- cssSupportedSpace(): string {
- return this.faker.helpers.objectValue(CssSpace);
+ cssSupportedSpace(): CssSpaceType {
+ return this.faker.helpers.enumValue(CssSpace);
}
/**
diff --git a/src/modules/person/index.ts b/src/modules/person/index.ts
index 5618110b..d7d2d3c9 100644
--- a/src/modules/person/index.ts
+++ b/src/modules/person/index.ts
@@ -272,7 +272,7 @@ export class PersonModule {
* @since 8.0.0
*/
sexType(): SexType {
- return this.faker.helpers.objectValue(Sex);
+ return this.faker.helpers.enumValue(Sex);
}
/**