Skip to content

Commit

Permalink
clean up types
Browse files Browse the repository at this point in the history
  • Loading branch information
Casheeew committed Jul 15, 2024
1 parent 0ecb4ef commit 30fa306
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/ext/language-transformer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type ConditionMapObject<TCondition extends string> = {
[type in TCondition]: Condition;
};

export type TransformMapObject<TCondition extends string> = {
export type TransformMapObject<TCondition> = {
[name: string]: Transform<TCondition>;
};

Expand All @@ -45,7 +45,7 @@ export type RuleI18n = {
name: string;
};

export type Transform<TCondition extends string> = {
export type Transform<TCondition> = {
name: string;
description?: string;
i18n?: TransformI18n[];
Expand All @@ -58,15 +58,15 @@ export type TransformI18n = {
description?: string;
};

export type Rule<TCondition extends string> = {
export type Rule<TCondition> = {
type: 'suffix' | 'prefix' | 'wholeWord' | 'other';
isInflected: RegExp;
deinflect: (inflectedWord: string) => string;
conditionsIn: TCondition[];
conditionsOut: TCondition[];
};

export type SuffixRule<TCondition extends string> = {
export type SuffixRule<TCondition> = {
type: 'suffix';
isInflected: RegExp;
deinflected: string;
Expand Down

0 comments on commit 30fa306

Please sign in to comment.