From 79884641bb89136158bd3ff75e78b89dde32a13c Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 3 May 2022 20:50:44 +0200 Subject: chore: remove obsolete DefinitionTypes type (#912) --- src/definitions/definitions.ts | 12 ------------ src/definitions/index.ts | 2 +- src/index.ts | 1 - 3 files changed, 1 insertion(+), 14 deletions(-) (limited to 'src') diff --git a/src/definitions/definitions.ts b/src/definitions/definitions.ts index 69a6c5cb..a338cc83 100644 --- a/src/definitions/definitions.ts +++ b/src/definitions/definitions.ts @@ -56,15 +56,3 @@ export type LocaleDefinition = { // eslint-disable-next-line @typescript-eslint/no-explicit-any [group: string]: any; }; - -/** - * Internal: Compatibility type to ensure all modules have access to fallback locales. - * This should be replaced with a Proxy based property access - * that don't require prior getter generation in the future. - */ -export type DefinitionTypes = { - readonly title: 'metadata'; - readonly separator: 'metadata'; -} & { - readonly [module in keyof Definitions]: Array; -}; diff --git a/src/definitions/index.ts b/src/definitions/index.ts index da01ed15..70555b0e 100644 --- a/src/definitions/index.ts +++ b/src/definitions/index.ts @@ -7,7 +7,7 @@ export type { export type { CompanyDefinitions } from './company'; export type { DatabaseDefinitions } from './database'; export type { DateDefinitions, DateEntryDefinition } from './date'; -export type { DefinitionTypes, LocaleDefinition } from './definitions'; +export type { LocaleDefinition } from './definitions'; export type { FinanceCurrencyEntryDefinitions, FinanceDefinitions, diff --git a/src/index.ts b/src/index.ts index 8a1d415e..7778fda0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,6 @@ export type { DatabaseDefinitions, DateDefinitions, DateEntryDefinition, - DefinitionTypes, FinanceCurrencyEntryDefinitions, FinanceDefinitions, HackerDefinitions, -- cgit v1.2.3