diff options
| author | Shinigami <[email protected]> | 2023-05-04 16:42:29 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-04 16:42:29 +0200 |
| commit | 2e9ed960e3a11e4dcb78a434563fc04890c00c3d (patch) | |
| tree | 566aa44b9bb085b8a42c6f211b7ea93af4d8408f /src/definitions | |
| parent | 0740aa0da3b2ac1da4fd8a134d650162457552b4 (diff) | |
| download | faker-2e9ed960e3a11e4dcb78a434563fc04890c00c3d.tar.xz faker-2e9ed960e3a11e4dcb78a434563fc04890c00c3d.zip | |
chore: rename generics (#2046)
Diffstat (limited to 'src/definitions')
| -rw-r--r-- | src/definitions/definitions.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/definitions/definitions.ts b/src/definitions/definitions.ts index 30f965c3..ca495e34 100644 --- a/src/definitions/definitions.ts +++ b/src/definitions/definitions.ts @@ -22,8 +22,8 @@ import type { WordDefinition } from './word'; /** * Wrapper type for all definition categories that will make all properties optional and allow extra properties. */ -export type LocaleEntry<T extends Record<string, unknown>> = { - [P in keyof T]?: T[P] | null; +export type LocaleEntry<TCategoryDefinition extends Record<string, unknown>> = { + [P in keyof TCategoryDefinition]?: TCategoryDefinition[P] | null; } & Record<string, unknown>; // Unsupported & custom entries /** |
