diff options
| author | Shinigami <[email protected]> | 2023-04-21 18:36:00 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-21 16:36:00 +0000 |
| commit | 2a6f578149aebdb5c375378a778383249e9819f3 (patch) | |
| tree | bab5ca228cd5b69ac48b09725be978904339f07a /src/modules | |
| parent | bf67a219365d63c9430d4935056752859eaeaa8f (diff) | |
| download | faker-2a6f578149aebdb5c375378a778383249e9819f3.tar.xz faker-2a6f578149aebdb5c375378a778383249e9819f3.zip | |
refactor(location): deprecate streetName (#2071)
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/location/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 1d0bd4a4..76b3e100 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -199,12 +199,22 @@ export class LocationModule { /** * Returns a random localized street name. * + * @see faker.location.street() + * * @example * fakerDE.location.streetName() // 'Cavill Avenue' * * @since 8.0.0 + * + * @deprecated Use `faker.location.street()` instead. */ streetName(): string { + deprecated({ + deprecated: 'faker.location.streetName', + proposed: 'faker.location.street', + since: '8.0', + until: '9.0', + }); return this.faker.helpers.arrayElement( this.faker.definitions.location.street_name ); |
