Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jan 3, 2024
1 parent ad57485 commit a17a46a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ext/css/display.css
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ button.action-button:active {


/* Inflections */
.inflection-hypotheses{
.inflection-hypotheses {
padding-inline-start: 0;
list-style-type: none;
}
Expand Down
4 changes: 2 additions & 2 deletions ext/js/language/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ export class Translator {
}

/**
* @param {import('dictionary-data').InflectionHypothesis} hypothesis1
* @param {import('dictionary-data').InflectionHypothesis} hypothesis2
* @param {import('dictionary').Inflections} hypothesis1
* @param {import('dictionary').Inflections} hypothesis2
* @returns {boolean}
*/
_areInflectionHyphothesesEqual(hypothesis1, hypothesis2) {
Expand Down
6 changes: 1 addition & 5 deletions types/ext/dictionary-data.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,13 @@ export type TermGlossary = (
TermGlossaryString |
TermGlossaryText |
TermGlossaryImage |
TermGlossaryStructuredContent |
TermGlossaryDeinflection
TermGlossaryStructuredContent
);

export type TermGlossaryString = string;
export type TermGlossaryText = {type: 'text', text: string};
export type TermGlossaryImage = {type: 'image'} & TermImage;
export type TermGlossaryStructuredContent = {type: 'structured-content', content: StructuredContent.Content};
export type TermGlossaryDeinflection = [formOf: string, InflectionHypothesis: InflectionHypothesis];

export type InflectionHypothesis = string[];

export type TermImage = StructuredContent.ImageElementBase & {
// Compatibility properties
Expand Down
4 changes: 3 additions & 1 deletion types/ext/dictionary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,11 @@ export type TermDictionaryEntry = {

export type InflectionHypothesis = {
source: InflectionSource;
inflections: string[];
inflections: Inflections;
};

export type Inflections = string[];

export type InflectionSource = 'algorithm' | 'dictionary' | 'both';

/**
Expand Down

0 comments on commit a17a46a

Please sign in to comment.