aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/date.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-05-05 00:09:25 +0200
committerGitHub <[email protected]>2022-05-05 00:09:25 +0200
commit984fbb445ff3be3658535bf98916ce5f38943fbf (patch)
treeafab5f5137ee3069690944d11285d6d5a4e2fe35 /src/definitions/date.ts
parentf1dba1bb0b90dc5e1e3ee096f937a1d4df6acf03 (diff)
downloadfaker-984fbb445ff3be3658535bf98916ce5f38943fbf.tar.xz
faker-984fbb445ff3be3658535bf98916ce5f38943fbf.zip
fix(generate:locale): make the definition types extendible (#915)
Co-authored-by: Piotr Kuczynski <[email protected]>
Diffstat (limited to 'src/definitions/date.ts')
-rw-r--r--src/definitions/date.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/definitions/date.ts b/src/definitions/date.ts
index a6d74722..2f014f55 100644
--- a/src/definitions/date.ts
+++ b/src/definitions/date.ts
@@ -1,7 +1,9 @@
+import type { LocaleEntry } from './definitions';
+
/**
* The possible definitions related to dates.
*/
-export interface DateDefinitions {
+export type DateDefinitions = LocaleEntry<{
/**
* The translations for months (January - December).
*/
@@ -10,7 +12,7 @@ export interface DateDefinitions {
* The translations for weekdays (Sunday - Saturday).
*/
weekday: DateEntryDefinition;
-}
+}>;
/**
* The possible definitions related to date entries.