aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/lorem.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-02-01 17:31:52 +0100
committerGitHub <[email protected]>2022-02-01 17:31:52 +0100
commit5e6754da61b63019fd063fad26adbeeabd8b789b (patch)
tree954f7730feba92d951f66862d9165b99645f8981 /src/definitions/lorem.ts
parent18b4349af05ca671f1fc4cff0c04d359e914f001 (diff)
downloadfaker-5e6754da61b63019fd063fad26adbeeabd8b789b.tar.xz
faker-5e6754da61b63019fd063fad26adbeeabd8b789b.zip
feat(types): provide strong typing for locales (#363)
Diffstat (limited to 'src/definitions/lorem.ts')
-rw-r--r--src/definitions/lorem.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/definitions/lorem.ts b/src/definitions/lorem.ts
new file mode 100644
index 00000000..eb548e46
--- /dev/null
+++ b/src/definitions/lorem.ts
@@ -0,0 +1,16 @@
+import { allOf } from './utils';
+
+/**
+ * The possible definitions related to lorem texts.
+ */
+export interface LoremDefinitions {
+ /**
+ * Lorem words used to generate dummy texts.
+ */
+ words: string[];
+}
+
+/**
+ * Internal: A list of all keys for the LoremDefinitions.
+ */
+export const LOREM = allOf<keyof LoremDefinitions>()('words');