File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,18 @@ export class DictionaryIndex {
28
28
this . index . author = author ;
29
29
return this ;
30
30
}
31
+ setIsUpdatable ( isUpdatable : boolean ) {
32
+ this . index . isUpdatable = isUpdatable ;
33
+ return this ;
34
+ }
35
+ setIndexUrl ( indexUrl : string ) {
36
+ this . index . indexUrl = indexUrl ;
37
+ return this ;
38
+ }
39
+ setDownloadUrl ( downloadUrl : string ) {
40
+ this . index . downloadUrl = downloadUrl ;
41
+ return this ;
42
+ }
31
43
setDescription ( description : string ) {
32
44
this . index . description = description ;
33
45
return this ;
Original file line number Diff line number Diff line change @@ -16,15 +16,21 @@ type TagInfo = {
16
16
type DictionaryIndexType = {
17
17
/** Title of the dictionary. */
18
18
title : string ;
19
- /** Revision of the dictionary. This value is only used for displaying information . */
19
+ /** Revision of the dictionary. This value is displayed, and used to check for dictionary updates . */
20
20
revision : string ;
21
21
/** Whether or not this dictionary contains sequencing information for related terms. */
22
22
sequenced ?: boolean ;
23
23
/** Format of data found in the JSON data files. */
24
24
format ?: 1 | 2 | 3 ;
25
25
/** Creator of the dictionary. */
26
26
author ?: string ;
27
- /** URL for the source of the dictionary. */
27
+ /** Whether this dictionary contains links to its latest version. */
28
+ isUpdatable ?: boolean ;
29
+ /** URL for the index file of the latest revision of the dictionary, used to check for updates. */
30
+ indexUrl ?: string ;
31
+ /** URL for the download of the latest revision of the dictionary. */
32
+ downloadUrl ?: string ;
33
+ /** URL for the source of the dictionary, displayed in the dictionary details. */
28
34
url ?: string ;
29
35
/** Description of the dictionary data. */
30
36
description ?: string ;
You can’t perform that action at this time.
0 commit comments