Skip to content

Commit

Permalink
chore: remove obsolete DefinitionTypes type
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed May 3, 2022
1 parent e29e875 commit 23ec9d1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
12 changes: 0 additions & 12 deletions src/definitions/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<keyof Definitions[module]>;
};
2 changes: 1 addition & 1 deletion src/definitions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export type {
DatabaseDefinitions,
DateDefinitions,
DateEntryDefinition,
DefinitionTypes,
FinanceCurrencyEntryDefinitions,
FinanceDefinitions,
HackerDefinitions,
Expand Down

0 comments on commit 23ec9d1

Please sign in to comment.