@@ -210,7 +210,12 @@ Split the document into text chunks for large-content processing.
210
210
211
211
### Returns
212
212
213
- ` string[] ` : Array of text chunks
213
+ ` TextChunk[] ` : Array of text chunks, where each chunk contains:
214
+
215
+ - ` content ` (` string ` ): The text content of the chunk
216
+ - ` range ` (` Range ` ): The range in the document where the chunk starts and ends
217
+ - ` from ` (` number ` ): Start position in the document
218
+ - ` to ` (` number ` ): End position in the document
214
219
215
220
### Example
216
221
@@ -231,7 +236,12 @@ Split the document into HTML chunks for large-content processing.
231
236
232
237
### Returns
233
238
234
- ` string[] ` : Array of HTML chunks
239
+ ` HtmlChunk[] ` : Array of HTML chunks, where each chunk contains:
240
+
241
+ - ` content ` (` string ` ): The HTML content of the chunk
242
+ - ` range ` (` Range ` ): The range in the document where the chunk starts and ends
243
+ - ` from ` (` number ` ): Start position in the document
244
+ - ` to ` (` number ` ): End position in the document
235
245
236
246
### Example
237
247
@@ -252,7 +262,12 @@ Split the document into Tiptap JSON chunks for large-content processing.
252
262
253
263
### Returns
254
264
255
- ` any[] ` : Array of Tiptap JSON chunks
265
+ ` JsonChunk[] ` : Array of Tiptap JSON chunks, where each chunk contains:
266
+
267
+ - ` content ` (` any ` ): The Tiptap JSON content of the chunk. It is the JSON of a Fragment of the document.
268
+ - ` range ` (` Range ` ): The range in the document where the chunk starts and ends
269
+ - ` from ` (` number ` ): Start position in the document
270
+ - ` to ` (` number ` ): End position in the document
256
271
257
272
### Example
258
273
0 commit comments