diff options
| author | DivisionByZero <[email protected]> | 2024-02-11 11:29:51 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-11 10:29:51 +0000 |
| commit | 9aab7c2429b50c0f6e8bd1908344f9ff92912f5d (patch) | |
| tree | a30e8d5a6704c8c5011757e48dba4e1bba5ac638 /src/definitions | |
| parent | 0e4b93fe42ed6c63970c629e9b5e3ff415e5711c (diff) | |
| download | faker-9aab7c2429b50c0f6e8bd1908344f9ff92912f5d.tar.xz faker-9aab7c2429b50c0f6e8bd1908344f9ff92912f5d.zip | |
feat(food): new module (#2484)
Co-authored-by: Matt Mayer <[email protected]>
Co-authored-by: Matt Mayer <[email protected]>
Diffstat (limited to 'src/definitions')
| -rw-r--r-- | src/definitions/definitions.ts | 2 | ||||
| -rw-r--r-- | src/definitions/food.ts | 53 | ||||
| -rw-r--r-- | src/definitions/index.ts | 1 |
3 files changed, 56 insertions, 0 deletions
diff --git a/src/definitions/definitions.ts b/src/definitions/definitions.ts index c2a3b560..cf760f0b 100644 --- a/src/definitions/definitions.ts +++ b/src/definitions/definitions.ts @@ -6,6 +6,7 @@ import type { CompanyDefinition } from './company'; import type { DatabaseDefinition } from './database'; import type { DateDefinition } from './date'; import type { FinanceDefinition } from './finance'; +import type { FoodDefinition } from './food'; import type { HackerDefinition } from './hacker'; import type { InternetDefinition } from './internet'; import type { LocationDefinition } from './location'; @@ -39,6 +40,7 @@ export type LocaleDefinition = { database?: DatabaseDefinition; date?: DateDefinition; finance?: FinanceDefinition; + food?: FoodDefinition; hacker?: HackerDefinition; internet?: InternetDefinition; location?: LocationDefinition; diff --git a/src/definitions/food.ts b/src/definitions/food.ts new file mode 100644 index 00000000..99cee8e3 --- /dev/null +++ b/src/definitions/food.ts @@ -0,0 +1,53 @@ +import type { LocaleEntry } from './definitions'; + +export type FoodDefinition = LocaleEntry<{ + /** + * Common food adjectives. + */ + adjective: string[]; + + /** + * List of description patterns. + */ + description_pattern: string[]; + + /** + * Common dish names. + */ + dish: string[]; + + /** + * List of dish patterns. + */ + dish_pattern: string[]; + + /** + * A list of cooking styles that are commonly associated with a particular food item or recipe. + */ + ethnic_category: string[]; + + /** + * A list of common fruit names. + */ + fruit: string[]; + + /** + * Common ingredient names. + */ + ingredient: string[]; + + /** + * Common meat names. + */ + meat: string[]; + + /** + * A list of common spice names. + */ + spice: string[]; + + /** + * A list of common vegetable names. + */ + vegetable: string[]; +}>; diff --git a/src/definitions/index.ts b/src/definitions/index.ts index f101f4ff..cb240115 100644 --- a/src/definitions/index.ts +++ b/src/definitions/index.ts @@ -10,6 +10,7 @@ export type { DatabaseDefinition } from './database'; export type { DateDefinition, DateEntryDefinition } from './date'; export type { LocaleDefinition, LocaleEntry } from './definitions'; export type { FinanceDefinition } from './finance'; +export type { FoodDefinition } from './food'; export type { HackerDefinition } from './hacker'; export type { InternetDefinition } from './internet'; export type { LocationDefinition } from './location'; |
