Skip to content

Commit

Permalink
delete unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Feb 3, 2024
1 parent 2865806 commit d6b4708
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 0 additions & 10 deletions types/ext/translation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,6 @@ export type FindTermsMatchType = Dictionary.TermSourceMatchType;
*/
export type FindTermsSortOrder = 'ascending' | 'descending';

/**
* Mode describing how to handle variations.
*/
export type FindTermsVariantMode = 'false' | 'true' | 'variant';

/**
* Mode describing how to handle emphatic sequence variations.
*/
export type FindTermsEmphaticSequencesMode = 'false' | 'true' | 'full';

/**
* Information about how text should be replaced when looking up terms.
*/
Expand Down
8 changes: 1 addition & 7 deletions types/test/translator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

import type {FindTermsMatchType, FindTermsSortOrder, FindTermsVariantMode, FindTermsEmphaticSequencesMode, FindKanjiDictionary, FindTermDictionary} from '../ext/translation';
import type {FindTermsMatchType, FindTermsSortOrder, FindKanjiDictionary, FindTermDictionary} from '../ext/translation';
import type {SearchResolution, TextTransformationsOptions} from '../ext/settings';
import type {FindTermsMode} from 'translator';
import type {DictionaryEntry} from 'dictionary';
Expand Down Expand Up @@ -44,12 +44,6 @@ export type FindTermsOptionsPreset = {
sortFrequencyDictionary?: string | null;
sortFrequencyDictionaryOrder?: FindTermsSortOrder;
removeNonJapaneseCharacters?: boolean;
convertHalfWidthCharacters?: FindTermsVariantMode;
convertNumericCharacters?: FindTermsVariantMode;
convertAlphabeticCharacters?: FindTermsVariantMode;
convertHiraganaToKatakana?: FindTermsVariantMode;
convertKatakanaToHiragana?: FindTermsVariantMode;
collapseEmphaticSequences?: FindTermsEmphaticSequencesMode;
textReplacements?: (FindTermsTextReplacement[] | null)[];
enabledDictionaryMap?: [key: string, value: FindTermDictionary][];
excludeDictionaryDefinitions?: string[] | null;
Expand Down

0 comments on commit d6b4708

Please sign in to comment.