mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
chore: bump deps (#15151)
This commit is contained in:
@@ -38,9 +38,9 @@ Text [delta](https://docs.yjs.dev/api/delta-format) is a format from Y.js.
|
||||
|
||||
##### input?
|
||||
|
||||
The input can be a string, a Y.Text instance, or an array of DeltaInsert.
|
||||
`string` \| `YText` \| `DeltaInsert`\<`TextAttributes`\>[]
|
||||
|
||||
`string` | `YText` | `DeltaInsert`\<`TextAttributes`\>[]
|
||||
The input can be a string, a Y.Text instance, or an array of DeltaInsert.
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -320,7 +320,7 @@ The delta of the sliced text.
|
||||
|
||||
### split()
|
||||
|
||||
> **split**(`index`, `length`): `Text`
|
||||
> **split**(`index`, `length?`): `Text`
|
||||
|
||||
Split the text into another Text.
|
||||
|
||||
@@ -332,7 +332,7 @@ Split the text into another Text.
|
||||
|
||||
The index to split.
|
||||
|
||||
##### length
|
||||
##### length?
|
||||
|
||||
`number` = `0`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user