diff options
| author | Shinigami <[email protected]> | 2022-09-09 01:18:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-08 17:18:57 +0000 |
| commit | b9884d098d6e14001da36acfba6fbfebdcef8fea (patch) | |
| tree | 255dc8698618dfdb0de268f6f3db9bca94b84e83 /src/modules/date | |
| parent | 1fe2877d0c6b237b3d1a5b6b29c4749578a8f9a4 (diff) | |
| download | faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.tar.xz faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.zip | |
feat(modules): export module interfaces (#932)
Diffstat (limited to 'src/modules/date')
| -rw-r--r-- | src/modules/date/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts index 0ca11d45..111fc4ba 100644 --- a/src/modules/date/index.ts +++ b/src/modules/date/index.ts @@ -20,12 +20,10 @@ function toDate(date?: string | Date | number): Date { /** * Module to generate dates. */ -// disabled until modules are renamed to something with a suffix -// eslint-disable-next-line @typescript-eslint/naming-convention -export class _Date { +export class DateModule { constructor(private readonly faker: Faker) { // Bind `this` so namespaced is working correctly - for (const name of Object.getOwnPropertyNames(_Date.prototype)) { + for (const name of Object.getOwnPropertyNames(DateModule.prototype)) { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } |
