diff options
| author | Matt Mayer <[email protected]> | 2022-11-06 22:11:04 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-06 15:11:04 +0000 |
| commit | 1bed40369974db6a15db3e6cb8e765717e640ad1 (patch) | |
| tree | 1556e6f79e2845020e0768cd90712baf2fdc9c50 /src/modules/location | |
| parent | 0b9989fe0ec3dcb8e511060c1fe42bb6abe2b1ba (diff) | |
| download | faker-1bed40369974db6a15db3e6cb8e765717e640ad1.tar.xz faker-1bed40369974db6a15db3e6cb8e765717e640ad1.zip | |
docs: update since tags for person and location (#1516)
Diffstat (limited to 'src/modules/location')
| -rw-r--r-- | src/modules/location/index.ts | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 36553572..fcb8aabd 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -27,7 +27,7 @@ export class LocationModule { * faker.location.zipCode() // '17839' * faker.location.zipCode('####') // '6925' * - * @since 2.0.1 + * @since 8.0.0 */ zipCode(format?: string): string { // if zip format is not specified, use the zip format defined for the locale @@ -55,7 +55,7 @@ export class LocationModule { * fakerUS.location.zipCodeByState("AK") // '99595' * fakerUS.location.zipCodeByState("??") // '47683-9880' * - * @since 5.0.0 + * @since 8.0.0 */ zipCodeByState(state: string): string { const zipRange = this.faker.definitions.location.postcode_by_state?.[state]; @@ -71,7 +71,7 @@ export class LocationModule { * @example * faker.location.city() // 'East Jarretmouth' * - * @since 2.0.1 + * @since 8.0.0 */ city(): string { const pattern = this.faker.helpers.arrayElement( @@ -86,7 +86,7 @@ export class LocationModule { * @example * faker.location.cityName() // 'San Rafael' * - * @since 5.5.0 + * @since 8.0.0 */ cityName(): string { return this.faker.helpers.arrayElement( @@ -100,7 +100,7 @@ export class LocationModule { * @example * faker.location.buildingNumber() // '379' * - * @since 6.2.0 + * @since 8.0.0 */ buildingNumber(): string { const format = this.faker.helpers.arrayElement( @@ -116,7 +116,7 @@ export class LocationModule { * @example * faker.location.street() // 'Schroeder Isle' * - * @since 7.0.0 + * @since 8.0.0 */ street(): string { const format = this.faker.helpers.arrayElement( @@ -131,7 +131,7 @@ export class LocationModule { * @example * fakerDE.location.streetName() // 'Cavill Avenue' * - * @since 2.0.1 + * @since 8.0.0 */ streetName(): string { return this.faker.helpers.arrayElement( @@ -150,7 +150,7 @@ export class LocationModule { * faker.location.streetAddress(false) // '34830 Erdman Hollow' * faker.location.streetAddress(true) // '3393 Ronny Way Apt. 742' * - * @since 2.0.1 + * @since 8.0.0 */ streetAddress(useFullAddress: boolean = false): string { const formats = this.faker.definitions.location.street_address; @@ -166,7 +166,7 @@ export class LocationModule { * @example * faker.location.secondaryAddress() // 'Apt. 861' * - * @since 2.0.1 + * @since 8.0.0 */ secondaryAddress(): string { return this.faker.helpers.replaceSymbolWithNumber( @@ -182,7 +182,7 @@ export class LocationModule { * @example * faker.location.county() // 'Cambridgeshire' * - * @since 2.0.1 + * @since 8.0.0 */ county(): string { return this.faker.helpers.arrayElement( @@ -196,7 +196,7 @@ export class LocationModule { * @example * faker.location.country() // 'Greece' * - * @since 2.0.1 + * @since 8.0.0 */ country(): string { return this.faker.helpers.arrayElement( @@ -215,7 +215,7 @@ export class LocationModule { * faker.location.countryCode('alpha-2') // 'GA' * faker.location.countryCode('alpha-3') // 'TJK' * - * @since 3.0.0 + * @since 8.0.0 */ countryCode(alphaCode: 'alpha-2' | 'alpha-3' = 'alpha-2'): string { const key = @@ -232,7 +232,7 @@ export class LocationModule { * @example * faker.location.state() // 'Georgia' * - * @since 2.0.1 + * @since 8.0.0 */ state(): string { return this.faker.helpers.arrayElement( @@ -246,7 +246,7 @@ export class LocationModule { * @example * faker.location.stateAbbr() // 'ND' * - * @since 2.0.1 + * @since 8.0.0 */ stateAbbr(): string { return this.faker.helpers.arrayElement( @@ -265,7 +265,7 @@ export class LocationModule { * faker.location.latitude() // -30.9501 * faker.location.latitude(10, -10, 5) // 2.68452 * - * @since 2.0.1 + * @since 8.0.0 */ // TODO @xDivisionByZerox 2022-06-12 this signature should probably be an object for easier maintainability latitude(max: number = 90, min: number = -90, precision: number = 4): number { @@ -287,7 +287,7 @@ export class LocationModule { * faker.location.longitude() // -154.0226 * faker.location.longitude(10, -10, 5) // -4.03620 * - * @since 2.0.1 + * @since 8.0.0 */ // TODO @xDivisionByZerox 2022-06-12 this signature should probably be an object for easier maintainability longitude( @@ -313,7 +313,7 @@ export class LocationModule { * faker.location.direction(false) // 'South' * faker.location.direction(true) // 'NE' * - * @since 5.0.0 + * @since 8.0.0 */ direction(useAbbr: boolean = false): string { if (!useAbbr) { @@ -337,7 +337,7 @@ export class LocationModule { * faker.location.cardinalDirection(false) // 'South' * faker.location.cardinalDirection(true) // 'N' * - * @since 5.0.0 + * @since 8.0.0 */ cardinalDirection(useAbbr: boolean = false): string { if (!useAbbr) { @@ -361,7 +361,7 @@ export class LocationModule { * faker.location.ordinalDirection(false) // 'Northwest' * faker.location.ordinalDirection(true) // 'NE' * - * @since 5.0.0 + * @since 8.0.0 */ ordinalDirection(useAbbr: boolean = false): string { if (!useAbbr) { @@ -387,7 +387,7 @@ export class LocationModule { * faker.location.nearbyGPSCoordinate([33, -170]) // [ 33.0165, -170.0636 ] * faker.location.nearbyGPSCoordinate([33, -170], 1000, true) // [ 37.9163, -179.2408 ] * - * @since 5.0.0 + * @since 8.0.0 */ nearbyGPSCoordinate( coordinate?: [latitude: number, longitude: number], @@ -445,7 +445,7 @@ export class LocationModule { * @example * faker.location.timeZone() // 'Pacific/Guam' * - * @since 5.1.0 + * @since 8.0.0 */ timeZone(): string { return this.faker.helpers.arrayElement( |
