diff options
| author | ST-DDT <[email protected]> | 2022-02-01 17:31:52 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-01 17:31:52 +0100 |
| commit | 5e6754da61b63019fd063fad26adbeeabd8b789b (patch) | |
| tree | 954f7730feba92d951f66862d9165b99645f8981 /src/definitions/lorem.ts | |
| parent | 18b4349af05ca671f1fc4cff0c04d359e914f001 (diff) | |
| download | faker-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.ts | 16 |
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'); |
