diff options
| author | Shinigami <[email protected]> | 2022-05-04 11:48:03 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-04 11:48:03 +0200 |
| commit | 683ee3405c39408d74d74cac0755a26de7a99e35 (patch) | |
| tree | 30a51b3fe3bf1013149045777f84e0d8de9724c5 /src/modules/datatype | |
| parent | 100a1ea230cba422174a6b5103c56bc4cf9c0dc4 (diff) | |
| download | faker-683ee3405c39408d74d74cac0755a26de7a99e35.tar.xz faker-683ee3405c39408d74d74cac0755a26de7a99e35.zip | |
refactor!: remove deprecations (#916)
Diffstat (limited to 'src/modules/datatype')
| -rw-r--r-- | src/modules/datatype/index.ts | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index 653d4d3f..a81a9681 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -1,6 +1,5 @@ import type { Faker } from '../..'; import { FakerError } from '../../errors/faker-error'; -import { deprecated } from '../../internal/deprecated'; /** * Module to generate various primitive values and data types. @@ -190,30 +189,6 @@ export class Datatype { * * @param length Length of the generated number. Defaults to `1`. * - * @see faker.datatype.hexadecimal() - * - * @example - * faker.datatype.hexaDecimal() // '0xb' - * faker.datatype.hexaDecimal(10) // '0xaE13F044fb' - * - * @deprecated - */ - hexaDecimal(length = 1): string { - deprecated({ - deprecated: 'faker.datatype.hexaDecimal()', - proposed: 'faker.datatype.hexadecimal()', - since: 'v6.1.2', - until: 'v7.0.0', - }); - - return this.hexadecimal(length); - } - - /** - * Returns a [hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) number. - * - * @param length Length of the generated number. Defaults to `1`. - * * @example * faker.datatype.hexadecimal() // '0xb' * faker.datatype.hexadecimal(10) // '0xaE13F044fb' |
