summaryrefslogtreecommitdiff
path: root/docs/interfaces
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-08 13:16:56 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-08 15:25:35 -0400
commitff93079a784fd2673f85d09c6d3678ac7ff05cfd (patch)
tree101145949bb01c1810c430e80720c5b34db77b85 /docs/interfaces
parent5457a4ce32f02991551e69fb68e7aaf49b445d87 (diff)
Improve term grouping (#1653)
* Rename _addUniqueStrings to _addUniqueSimple * Update definition merging to not depend the sequence number * Improve naming * Update AnkiNoteDataCreator * Update docs * Remove fields that no longer exist * Update test data
Diffstat (limited to 'docs/interfaces')
-rw-r--r--docs/interfaces/dictionary-entry.ts14
1 files changed, 4 insertions, 10 deletions
diff --git a/docs/interfaces/dictionary-entry.ts b/docs/interfaces/dictionary-entry.ts
index 724a0b5a..2a58f5dc 100644
--- a/docs/interfaces/dictionary-entry.ts
+++ b/docs/interfaces/dictionary-entry.ts
@@ -201,14 +201,6 @@ namespace Translation {
*/
isPrimary: boolean;
/**
- * Database sequence number for the term, or `-1` if multiple entries have been merged.
- */
- sequence: number;
- /**
- * The dictionary that the sequence number originated from, or `null` if there is no sequence.
- */
- sequenceDictionary: string;
- /**
* A list of inflections that was applied to get the term.
*/
inflections: string[];
@@ -297,9 +289,11 @@ namespace Translation {
*/
dictionary: string;
/**
- * Database sequence number for the term. The value will be `-1` if there is no sequence.
+ * A list of database sequence numbers for the term. A value of `-1` corresponds to no sequence.
+ * The list can have multiple values if multiple definitions with different sequences have been merged.
+ * The list should always have at least one item.
*/
- sequence: number;
+ sequences: number;
/**
* Tags for the definition.
*/