diff options
| author | ST-DDT <[email protected]> | 2023-01-24 22:51:25 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-24 22:51:25 +0100 |
| commit | 3a44d5fa48e8b28a7b9422a18262e39af1d1cb91 (patch) | |
| tree | 9aad6f26baf083215fe805eb898beab1e791679c /scripts | |
| parent | 28a9848a8efed508a677afa868cc0c31db777979 (diff) | |
| download | faker-3a44d5fa48e8b28a7b9422a18262e39af1d1cb91.tar.xz faker-3a44d5fa48e8b28a7b9422a18262e39af1d1cb91.zip | |
feat(date): introduce faker.defaultRefDate and setDefaultRefDate (#1757)
Co-authored-by: Shinigami <[email protected]>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index 3e11572e..352ec978 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -1,4 +1,5 @@ import { resolve } from 'path'; +import { faker } from '../src'; import { writeApiPagesIndex, writeApiSearchIndex, @@ -13,6 +14,7 @@ const pathOutputJson = resolve(pathOutputDir, 'typedoc.json'); async function build(): Promise<void> { await initMarkdownRenderer(); + faker.setDefaultRefDate(Date.UTC(2023, 0, 1)); const app = newTypeDocApp(); |
