tadcode-wpsjs 0.1.3 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,212 @@
1
+ import type { DistributiveOmit, DeepPartial } from './type-tools'
2
+ import type { Operator, } from './DB_Application_Record'
3
+
4
+ interface FieldBase {
5
+ id: string
6
+ name: string
7
+ }
8
+
9
+ type DatePart =
10
+ | 'MM/dd'
11
+ | 'yyyy/MM/dd'
12
+ | 'yyyy-MM-dd'
13
+ | 'yyyy\"年\"M\"月\"d\"日\"'
14
+ | 'yyyy\"年\"m\"月\"'
15
+
16
+ type DateFormat =
17
+ | `${DatePart};@`
18
+ | `${DatePart} aaaa;@`
19
+ | `${DatePart} aaaa hh:mm;@`
20
+
21
+ type TimePart =
22
+ | 'h:mm'
23
+ | 'h:mm:ss'
24
+
25
+ type TimeFormat =
26
+ | `[$-409]${TimePart};@`
27
+ | `[$-409]${TimePart} AM/PM;@`
28
+
29
+ type ZeroFormat =
30
+ | `${number}_ `
31
+ | `#,##${number}_ `
32
+
33
+ type CurrencyFormat =
34
+ | `¥#,##0;¥-#,##0`
35
+ | `¥#,##0.0;¥-#,##0.0`
36
+ | `¥#,##0.00;¥-#,##0.00`
37
+ | `$#,##0;$-#,##0`
38
+ | `$#,##0.0;$-#,##0.0`
39
+ | `$#,##0.00;$-#,##0.00`
40
+ | `\"€\"#,##0;\"€\"-#,##0`
41
+ | `\"€\"#,##0.0;\"€\"-#,##0.0`
42
+ | `\"€\"#,##0.00;\"€\"-#,##0.00`
43
+
44
+ type RatingRange = 0 | 1 | 2 | 3 | 4 | 5
45
+
46
+ type CompleteRange = `0.${number}`
47
+
48
+ type SelectItem = { id: string, value: string }
49
+
50
+ type OmitFieldSelectId<T> = T extends { type: 'SingleSelect' | 'MultipleSelect', items: [SelectItem, ...SelectItem[]] } ? Omit<T, 'items'> & { items: [Omit<SelectItem, 'id'>, ...Omit<SelectItem, 'id'>[]] } : T
51
+
52
+ interface FieldTypeFormat {
53
+ MultiLineText: {
54
+ uniqueValue?: boolean
55
+ defaultValue?: string
56
+ }
57
+ Date: {
58
+ uniqueValue?: boolean
59
+ defaultValue?: string
60
+ numberFormat?: DateFormat
61
+ defaultValueType?: 'Normal' | 'RecordCreateTime'
62
+ }
63
+ Time: {
64
+ uniqueValue?: boolean
65
+ defaultValue?: string
66
+ numberFormat?: TimeFormat
67
+ }
68
+ Number: {
69
+ uniqueValue?: boolean
70
+ defaultValue?: string
71
+ numberFormat?: ZeroFormat
72
+ }
73
+ Currency: {
74
+ uniqueValue?: boolean
75
+ defaultValue?: string
76
+ numberFormat?: CurrencyFormat
77
+ }
78
+ Percentage: {
79
+ uniqueValue?: boolean
80
+ defaultValue?: string
81
+ numberFormat?: `${number}%`
82
+ }
83
+ ID: {
84
+ uniqueValue?: boolean
85
+ defaultValue?: string
86
+ numberFormat?: string
87
+ }
88
+ Phone: {
89
+ uniqueValue?: boolean
90
+ defaultValue?: string
91
+ numberFormat?: string
92
+ }
93
+ Email: {
94
+ uniqueValue?: boolean
95
+ defaultValue?: string
96
+ numberFormat?: string
97
+ }
98
+ Url: {
99
+ uniqueValue?: boolean
100
+ defaultValue?: string
101
+ numberFormat?: string
102
+ displayText?: string
103
+ }
104
+ Checkbox: {
105
+ uniqueValue?: boolean
106
+ defaultValue?: '1'
107
+ numberFormat?: string
108
+ }
109
+ SingleSelect: {
110
+ uniqueValue?: boolean
111
+ defaultValue?: string
112
+ numberFormat?: string
113
+ autoAddItem?: boolean
114
+ items: [SelectItem, ...SelectItem[]]
115
+ }
116
+ MultipleSelect: {
117
+ uniqueValue?: boolean
118
+ defaultValue?: string
119
+ numberFormat?: string
120
+ autoAddItem?: boolean
121
+ items: [SelectItem, ...SelectItem[]]
122
+ }
123
+ Rating: {
124
+ uniqueValue?: boolean
125
+ defaultValue?: string
126
+ numberFormat?: string
127
+ max: RatingRange
128
+ }
129
+ Complete: {
130
+ uniqueValue?: boolean
131
+ defaultValue?: `0.${number}`
132
+ numberFormat?: `${number}%`
133
+ }
134
+ Contact: {
135
+ uniqueValue?: boolean
136
+ defaultValue?: {
137
+ avatar: string
138
+ companyId: string
139
+ nickName: string
140
+ }[]
141
+ defaultValueType?: 'Normal' | 'RecordCreator'
142
+ numberFormat?: string
143
+ multipleContacts: boolean
144
+ noticeNewContact: boolean
145
+ }
146
+ Attachment: {
147
+ uniqueValue?: boolean
148
+ onlyUploadByCamera?: boolean
149
+ displayStyle?: 'Pic' | 'List'
150
+ }
151
+ /* 可关联的记录范围不支持设置 */
152
+ Link: {
153
+ uniqueValue?: boolean
154
+ linkSheet: number
155
+ multipleLinks: boolean
156
+ }
157
+ Note: {}
158
+ AutoNumber: {
159
+ uniqueValue?: boolean
160
+ numberFormat?: '000000' | '00000000',
161
+ }
162
+ CreatedBy: {
163
+ uniqueValue?: boolean
164
+ }
165
+ CreatedTime: {
166
+ uniqueValue?: boolean
167
+ }
168
+ Formula: {}
169
+ Lookup: {
170
+ lookupSheetId?: 5,
171
+ lookupField?: string,
172
+ lookupFunction?: 'Origin',
173
+ filter?: {
174
+ groups: [
175
+ {
176
+ conds: {
177
+ linkSheetFieldId: string
178
+ /**注意字段类型,文本 数字 日期 所用操作符会不一样 */
179
+ condOpType: Operator
180
+ curSheetCondType: 'Field' | 'Literal'
181
+ curSheetCondContents: string[]
182
+ }[]
183
+ }
184
+ ]
185
+ }
186
+ }
187
+ }
188
+
189
+ type FieldTypeKeys = keyof FieldTypeFormat
190
+
191
+ type ResultField<T> = { type: T } & FieldTypeFormat[T] & FieldBase
192
+
193
+ // 使用映射类型生成联合类型
194
+ type Field = {
195
+ [K in FieldTypeKeys]: ResultField<K>
196
+ }[FieldTypeKeys]
197
+
198
+ interface FieldFuncOptions {
199
+ SheetId: number
200
+ Fields: Field[]
201
+ FieldIds: string[]
202
+ }
203
+
204
+ export type { RatingRange, CompleteRange, FieldTypeKeys, Field, FieldFuncOptions }
205
+
206
+ /* 字段 */
207
+ export default interface DBField {
208
+ CreateFields(options: Pick<FieldFuncOptions, 'SheetId'> & { Fields: DistributiveOmit<OmitFieldSelectId<Field>, 'id'>[] }): Field[]
209
+ GetFields(options: Pick<FieldFuncOptions, 'SheetId'>): Field[]
210
+ UpdateFields(options: Pick<FieldFuncOptions, 'SheetId'> & { Fields: (DeepPartial<Field> & { id: string })[] }): Field[]
211
+ DeleteFields(options: Pick<FieldFuncOptions, 'SheetId' | 'FieldIds'>): (Pick<FieldBase, 'id'> & { deleted: boolean })[]
212
+ }
@@ -0,0 +1,178 @@
1
+ import { RatingRange, CompleteRange } from './DB_Application_Field'
2
+ import type { MakePropertyOptional, PickModify } from './type-tools'
3
+
4
+ /* 复杂字段 超链接 联系人 附件 关联 */
5
+ interface RecordValueFormat {
6
+ MultiLineText: string
7
+ Date: `${number}/${number}` | `${number}/${number}/${number}`
8
+ Time: `${number}:${number}` | `${number}:${number}:${number}`
9
+ Number: number
10
+ Currency: number
11
+ Percentage: number
12
+ ID: string
13
+ Phone: string
14
+ Email: string
15
+ Url: string | { address: string, displayText: string }
16
+ Checkbox: boolean
17
+ SingleSelect: string
18
+ MultipleSelect: string[]
19
+ Rating: RatingRange
20
+ Complete: number
21
+ Contact: {
22
+ id: string,
23
+ nickName?: string,
24
+ avatar?: string
25
+ }[]
26
+ Attachment: {
27
+ uploadId: string,
28
+ fileName: string,
29
+ source: 'upload_ks3' | 'cloud',
30
+ type: string,
31
+ linkUrl?: string
32
+ size: number,
33
+ imgSize: string,
34
+ }[]
35
+ Link: string[] | { recordIds: string[] }
36
+ Note: never
37
+ AutoNumber: never
38
+ CreatedBy: never
39
+ CreatedTime: never
40
+ Formula: never
41
+ Lookup: never
42
+ SingleSelect: never
43
+ MultipleSelect: never
44
+ }
45
+
46
+ interface RecordItem {
47
+ id: string,
48
+ fields: Record<string, RecordValueFormat[keyof RecordValueFormat]> & Partial<RecordValueFormat>
49
+ }
50
+
51
+ type Operator = 'Equals' | 'NotEqu' | 'Greater' | 'GreaterEqu' | 'Less' | 'LessEqu' | 'GreaterEquAndLessEqu' | 'LessOrGreater' | 'BeginWith' | 'EndWith' | 'Contains' | 'NotContains' | 'Intersected' | 'Empty' | 'NotEmpty'
52
+
53
+ type DynamicDateRange = 'today' | 'yesterday' | 'tomorrow' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'nextWeek' | 'thisMonth' | 'lastMonth' | 'nextMonth'
54
+
55
+ interface RecordsFuncOptionsFilter {
56
+ /**选填。表示各筛选条件之间的逻辑关系。只能是'AND'或'OR'。缺省值为'AND' */
57
+ mode?: 'AND' | 'OR',
58
+ /**filter结构体内必填。包含筛选条件的数组。每个字段上只能有一个筛选条件 */
59
+ criteria: {
60
+ /**必填。根据 preferId 与否,需要填入字段名或字段id */
61
+ field: string
62
+ /**"Equals": 等于
63
+
64
+ "NotEqu": 不等于
65
+
66
+ "Greater": 大于
67
+
68
+ "GreaterEqu": 大等于
69
+
70
+ "Less": 小于
71
+
72
+ "LessEqu": 小等于
73
+
74
+ "GreaterEquAndLessEqu": 介于(取等)
75
+
76
+ "LessOrGreater": 介于(不取等)
77
+
78
+ "BeginWith": 开头是
79
+
80
+ "EndWith": 结尾是
81
+
82
+ "Contains": 包含
83
+
84
+ "NotContains": 不包含
85
+
86
+ "Intersected": 指定值
87
+
88
+ "Empty": 为空
89
+
90
+ "NotEmpty": 不为空
91
+ */
92
+ op: Operator
93
+ /**
94
+ * 必填。表示筛选规则中的值。数组形式。值为字符串时表示文本匹配。
95
+ * 这里的 values,必须是一个数组,传 ["多维表"],相当于传 [{ type: 'Text', value: '多维表' }],即不传默认帮你补充 Text 类型。
96
+ * 复选框的值,values: ['0'] 代表否,value: ['1'] 代表是。
97
+ *
98
+ * values[]数组内的元素为字符串时,表示文本匹配。各筛选规则独立地限制了values数组内最多允许填写的元素数,当values内元素数超过阈值时,该筛选规则将失效。
99
+ *
100
+ * a. “为空、不为空”不允许填写元素;
101
+ *
102
+ * b. “介于”允许最多填写2个元素;
103
+ *
104
+ * c. “指定值”允许填写65535个元素;
105
+ *
106
+ * d. 其他规则允许最多填写1个元素
107
+ */
108
+ values: string[] | {
109
+ type: 'Text'
110
+ value: string
111
+ }[] |
112
+ {
113
+ type: 'DynamicSimple'
114
+ /**
115
+ * 当"op"为"greater"或"less"时,"dynamicType"只能是昨天、今天或明天。
116
+ *
117
+ * "today": 今天
118
+ *
119
+ * "yesterday": 昨天
120
+ *
121
+ * "tomorrow": 明天
122
+ *
123
+ * "last7Days": 最近7天
124
+ *
125
+ * "last30Days": 最近30天
126
+ *
127
+ * "thisWeek": 本周
128
+ *
129
+ * "lastWeek": 上周
130
+ *
131
+ * "nextWeek":下周
132
+ *
133
+ * "thisMonth": 本月
134
+ *
135
+ * "lastMonth": 上月
136
+ *
137
+ * "nextMonth": 次月
138
+ */
139
+ dynamicType: DynamicDateRange
140
+ }[]
141
+ }[]
142
+ }
143
+
144
+ interface RecordFuncOptions {
145
+ SheetId: number
146
+ RecordId: string
147
+ RecordIds: string[]
148
+ Records: RecordItem[]
149
+ /**
150
+ * 填写后将从被指定的视图获取该用户所见到的记录;若不填写,则从工作表获取记录
151
+ */
152
+ ViewId: string
153
+ /**
154
+ * 存在分页时,指定本次查询的起始记录(含)。若不填写或填写为空字符串,则从第一条记录开始获取
155
+ *
156
+ * 当前最大值:1000
157
+ */
158
+ PageSize: number
159
+ /**分页查询时,将返回一个offset值,指向下一页的第一条记录,供后续查询。查询到最后一页或第maxRecords条记录时,返回数据将不再包含offset值 */
160
+ Offset: number
161
+ /**指定要获取的“前maxRecords条记录”,若不填写,则默认返回全部记录 */
162
+ MaxRecords: number
163
+ /**具体字段类型说明详见 [附件2](https://kdocs.cn/l/ctzsgDlAGF0l?linkname=QSt7dOHYA0) */
164
+ Fields: string[]
165
+ /**详细说明见 [附件4](https://www.kdocs.cn/l/ctzsgDlAGF0l?linkname=wsTfzS9o34) */
166
+ Filter: RecordsFuncOptionsFilter
167
+ }
168
+
169
+ export type { Operator, DynamicDateRange, RecordItem, RecordFuncOptions, RecordsFuncOptionsFilter }
170
+
171
+ /* 行记录 */
172
+ export default interface DBRecord {
173
+ CreateRecords(options: Pick<RecordFuncOptions, 'SheetId'> & { Records: { fields: Record<string, any> }[] }): RecordItem[]
174
+ GetRecord(options: Pick<RecordFuncOptions, 'SheetId' | 'RecordId'>): RecordItem
175
+ GetRecords(options: Pick<RecordFuncOptions, 'SheetId'> & Partial<Pick<RecordFuncOptions, 'ViewId' | 'PageSize' | 'Offset' | 'MaxRecords' | 'Fields' | 'Filter'>>): { records: RecordItem[] }
176
+ UpdateRecords(options: Pick<RecordFuncOptions, 'SheetId' | 'Records'>): RecordItem[]
177
+ DeleteRecords(options: Pick<RecordFuncOptions, 'SheetId' | 'RecordIds'>): (Pick<RecordItem, 'id'> & { deleted: boolean })[]
178
+ }
@@ -0,0 +1,22 @@
1
+ import type { RecordItem } from './DB_Application_Record'
2
+
3
+ interface ActiveView {
4
+ "sheetId": number
5
+ "viewId": string
6
+ "name": string
7
+ "type": string
8
+ }
9
+
10
+ interface ActiveSheet {
11
+ "sheetId": number
12
+ "name": string
13
+ "description": string
14
+ }
15
+
16
+ export type { ActiveView, ActiveSheet }
17
+
18
+ export default interface DBSelection {
19
+ GetActiveView(): ActiveView
20
+ GetSelectionRecords(): RecordItem[]
21
+ GetActiveSheet(): ActiveSheet
22
+ }
@@ -0,0 +1,63 @@
1
+ import type { FieldTypeKeys, } from './DB_Application_Field'
2
+ import type { ViewType } from './DB_Application_View'
3
+
4
+ interface Sheet {
5
+ 'description': string,
6
+ 'fields': {
7
+ 'arraySupport': boolean,
8
+ 'autoFillSourceField': string,
9
+ 'customConfig': string,
10
+ 'defaultValueType': 'Normal',
11
+ 'description': string,
12
+ 'id': string,
13
+ 'name': string,
14
+ 'numberFormat': string,
15
+ 'syncField': boolean,
16
+ 'type': FieldTypeKeys,
17
+ 'uniqueValue': boolean
18
+ 'loadLegalHoliday': number,
19
+ 'items': {
20
+ 'color': number,
21
+ 'id': string,
22
+ 'value': string
23
+ }[],
24
+ 'allowAddItemWhenInputting': true,
25
+ 'autoAddItem': boolean,
26
+ }[],
27
+ 'icon': string,
28
+ 'id': number,
29
+ 'name': number,
30
+ 'primaryFieldId': number,
31
+ 'recordsCount': number,
32
+ 'sheetType': 'xlEtDataBaseSheet',
33
+ 'subType': 'Normal',
34
+ 'syncFieldSourceId': string,
35
+ 'syncFieldSourceNameId': string,
36
+ 'syncType': 'None',
37
+ 'views': {
38
+ 'id': string,
39
+ 'name': string,
40
+ 'notice': string,
41
+ 'recordsCount': number,
42
+ 'type': ViewType
43
+ }[]
44
+ }
45
+
46
+ interface SheetFuncOptions {
47
+ SheetId: number
48
+ Name: string
49
+ Views: {
50
+ name: string
51
+ type: ViewType
52
+ }[]
53
+ Fields: { name: string, type: FieldTypeKeys }[]
54
+ }
55
+
56
+ export type { Sheet, SheetFuncOptions }
57
+
58
+ export default interface DBSheet {
59
+ CreateSheet(options: Omit<SheetFuncOptions, 'SheetId'>): Sheet
60
+ GetSheets(): Sheet[]
61
+ UpdateSheet(options: Pick<SheetFuncOptions, 'SheetId' | 'Name'>): boolean
62
+ DeleteSheet(options: Pick<SheetFuncOptions, 'SheetId'>): Pick<Sheet, 'id'>
63
+ }
@@ -0,0 +1,24 @@
1
+ type ViewType = 'Grid' | 'Kanban' | 'Gallery' | 'Form' | 'Gantt'
2
+
3
+ interface View {
4
+ "id": string
5
+ "name": string
6
+ "recordsCount": number
7
+ "type": ViewType
8
+ }
9
+
10
+ interface ViewFuncOptions {
11
+ SheetId: number
12
+ ViewId: string
13
+ Name: string
14
+ ViewType: ViewType
15
+ }
16
+
17
+ export type { View, ViewType, ViewFuncOptions }
18
+
19
+ export default interface DBView {
20
+ CreateView(options: Pick<ViewFuncOptions, 'SheetId' | 'Name' | 'ViewType'>): View
21
+ GetViews(options: Pick<ViewFuncOptions, 'SheetId'>): View[]
22
+ UpdateView(options: Pick<ViewFuncOptions, 'SheetId' | 'Name' | 'ViewId'>): View
23
+ DeleteView(options: Pick<ViewFuncOptions, 'SheetId' | 'ViewId'>): Pick<View, 'id'>
24
+ }
@@ -1,53 +1,60 @@
1
1
  import type DB_Application from './DB_Application'
2
2
  import type KSheet_Application from './KSheet_Application'
3
- export default interface KSDrive {
4
- FileType: {
5
- /**智能文档 */
6
- AP: string
7
- /**智能表格 */
8
- KSheet: string
9
- /**表格 */
10
- ET: string
11
- /**多维表 */
12
- DB: string
13
- }
14
- /**
15
- * 创建文件
16
- * @param type 新文件的类型
17
- * @param createOptions 新文件的参数选项
18
3
 
19
- */
20
- createFile(type: string, createOptions: createOptions)
21
- openFile(url: string): {
22
- Application: KSheet_Application & DB_Application
23
- close()
24
- }
25
- listFiles(options?: {
26
- dirUrl: string
27
- offset: number
28
- count: number
29
- includeExts: string[]
30
- })
31
- }
32
4
  interface CreateOptions {
33
- /**是 新文件的文件名 */
34
- name: string
35
- /**否 新文件的文件目录 */
36
- dirUrl: string
37
- /**否 将目标文件另存为新文件 */
38
- source: string
5
+ /**是 新文件的文件名 */
6
+ name: string
7
+ /**否 新文件的文件目录 */
8
+ dirUrl: string
9
+ /**否 将目标文件另存为新文件 */
10
+ source: string
39
11
  }
12
+
40
13
  interface FilesInfo {
41
- files: FileInfo[]
42
- nextOffset: number
14
+ files: FileInfo[]
15
+ nextOffset: number
43
16
  }
17
+
44
18
  interface FileInfo {
45
- /** 文件名 */
46
- fileName: string
47
- /** 加密后的文件 id */
48
- fileId: string
49
- /** 文件创建时间戳 */
50
- createTime: number
51
- /** 文件修改时间戳 */
52
- updateTime: number
19
+ /** 文件名 */
20
+ fileName: string
21
+ /** 加密后的文件 id */
22
+ fileId: string
23
+ /** 文件创建时间戳 */
24
+ createTime: number
25
+ /** 文件修改时间戳 */
26
+ updateTime: number
27
+ }
28
+
29
+ export default interface KSDrive {
30
+ FileType: {
31
+ /**智能文档 */
32
+ AP: 'o'
33
+ /**智能表格 */
34
+ KSheet: 'k'
35
+ /**表格 */
36
+ ET: 's'
37
+ /**多维表 */
38
+ DB: 'd'
39
+ }
40
+
41
+ /**
42
+ * 创建文件
43
+ * @param type 新文件的类型
44
+ * @param createOptions 新文件的参数选项
45
+ * @returns {string} 新文件url
46
+ */
47
+ createFile(type: string, createOptions: createOptions): string
48
+
49
+ openFile(url: string): {
50
+ Application: KSheet_Application & DB_Application
51
+ close()
52
+ }
53
+
54
+ listFiles(options?: {
55
+ dirUrl?: string
56
+ offset?: number
57
+ count?: number
58
+ includeExts?: string[]
59
+ }): FilesInfo
53
60
  }
@@ -1,25 +1,29 @@
1
- export default interface KSheet_Application {
2
- Sheets: {
3
- Item(index: number | string): Sheet
4
- }
5
- Range(index: string): {
6
- Value: any
7
- }
1
+ interface Range {
2
+ Value2: any
3
+ Formula: any
4
+ Resize(RowSize: number, ColumnSize?: number): Range
8
5
  }
6
+
9
7
  interface Sheet {
10
- /**
11
- * 获取一个单元格或单元格区域,返回一个 Range 对象
12
- * @paramaddress 地址,可以是单元格地址或者选区范围范围地址
13
- * @returns工作表里的一个单元格或单元格区域
14
- * @example参考示例
15
- * const sheet = Application.ActiveSheet
16
- * // 打印当前活动工作表D2单元格的内容
17
- * console.log(sheet.Range('D2').Text) // D2
18
- * // 修改当前活动工作表D2单元格的内容
19
- * sheet.Range('D2').Value = 'this is D2'
20
- */
21
- Range(address: string): Range
8
+ UsedRange: Range
9
+ /**
10
+ * 获取一个单元格或单元格区域,返回一个 Range 对象
11
+ * @paramaddress地址,可以是单元格地址或者选区范围范围地址
12
+ * @returns工作表里的一个单元格或单元格区域
13
+ * @example 参考示例
14
+ * const sheet = Application.ActiveSheet
15
+ * // 打印当前活动工作表D2单元格的内容
16
+ * console.log(sheet.Range('D2').Text) // D2
17
+ * // 修改当前活动工作表D2单元格的内容
18
+ * sheet.Range('D2').Value = 'this is D2'
19
+ */
20
+ Range(address: string): Range
22
21
  }
23
- interface Range {
24
- Value2: any
22
+
23
+ export default interface KSheet_Application {
24
+ ActiveSheet: Sheet
25
+ Sheets: {
26
+ Item(index: number | string): Sheet
27
+ }
28
+ Range(index: string): Range
25
29
  }