diff options
| author | ST-DDT <[email protected]> | 2022-03-02 21:06:50 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-02 21:06:50 +0100 |
| commit | 60d3cc519cd2cab061a23fbe09164d8b59e177ff (patch) | |
| tree | ac0ffbdbf3b0b30f09cc0f466e8ed87ba998b0d4 /src/faker.ts | |
| parent | 357986bc205d794966631f1335fa00f59ee1f77e (diff) | |
| download | faker-60d3cc519cd2cab061a23fbe09164d8b59e177ff.tar.xz faker-60d3cc519cd2cab061a23fbe09164d8b59e177ff.zip | |
fix: fix time.recent method signature (#586)
Diffstat (limited to 'src/faker.ts')
| -rw-r--r-- | src/faker.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/faker.ts b/src/faker.ts index 25046b9a..83f59a06 100644 --- a/src/faker.ts +++ b/src/faker.ts @@ -28,7 +28,9 @@ import { Vehicle } from './vehicle'; import { Word } from './word'; // https://github.com/microsoft/TypeScript/issues/29729#issuecomment-471566609 -type LiteralUnion<T extends U, U = string> = T | (U & { zz_IGNORE_ME?: never }); +export type LiteralUnion<T extends U, U = string> = + | T + | (U & { zz_IGNORE_ME?: never }); export type UsableLocale = LiteralUnion<KnownLocale>; export type UsedLocales = Partial<Record<UsableLocale, LocaleDefinition>>; |
