diff options
| author | ST-DDT <[email protected]> | 2022-05-05 00:09:25 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-05 00:09:25 +0200 |
| commit | 984fbb445ff3be3658535bf98916ce5f38943fbf (patch) | |
| tree | afab5f5137ee3069690944d11285d6d5a4e2fe35 /src/definitions/system.ts | |
| parent | f1dba1bb0b90dc5e1e3ee096f937a1d4df6acf03 (diff) | |
| download | faker-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/system.ts')
| -rw-r--r-- | src/definitions/system.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/definitions/system.ts b/src/definitions/system.ts index c3e25232..c6aa16c7 100644 --- a/src/definitions/system.ts +++ b/src/definitions/system.ts @@ -1,7 +1,9 @@ +import type { LocaleEntry } from './definitions'; + /** * The possible definitions related to files and the system. */ -export interface SystemDefinitions { +export type SystemDefinitions = LocaleEntry<{ /** * Returns some common file paths. */ @@ -10,7 +12,7 @@ export interface SystemDefinitions { * The mime type definitions with some additional information. */ mimeTypes: { [mimeType: string]: SystemMimeTypeEntryDefinitions }; -} +}>; /** * The mime type entry details. |
