marginally better typings for applyDelta - #689

This commit is contained in:
Kevin Jahns 2025-01-12 19:41:19 +01:00
parent 2d2e662d4d
commit bb5410b6dd
3 changed files with 6 additions and 6 deletions

8
package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "13.6.21", "version": "13.6.21",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"lib0": "^0.2.98" "lib0": "^0.2.99"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-commonjs": "^24.0.1",
@ -2785,9 +2785,9 @@
} }
}, },
"node_modules/lib0": { "node_modules/lib0": {
"version": "0.2.98", "version": "0.2.99",
"resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.98.tgz", "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.99.tgz",
"integrity": "sha512-XteTiNO0qEXqqweWx+b21p/fBnNHUA1NwAtJNJek1oPrewEZs2uiT4gWivHKr9GqCjDPAhchz0UQO8NwU3bBNA==", "integrity": "sha512-vwztYuUf1uf/1zQxfzRfO5yzfNKhTtgOByCruuiQQxWQXnPb8Itaube5ylofcV0oM0aKal9Mv+S1s1Ky0UYP1w==",
"dependencies": { "dependencies": {
"isomorphic.js": "^0.2.4" "isomorphic.js": "^0.2.4"
}, },

View File

@ -76,7 +76,7 @@
}, },
"homepage": "https://docs.yjs.dev", "homepage": "https://docs.yjs.dev",
"dependencies": { "dependencies": {
"lib0": "^0.2.98" "lib0": "^0.2.99"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-commonjs": "^24.0.1",

View File

@ -961,7 +961,7 @@ export class YText extends AbstractType {
/** /**
* Apply a {@link Delta} on this shared YText type. * Apply a {@link Delta} on this shared YText type.
* *
* @param {any} delta The changes to apply on this element. * @param {Array<any>} delta The changes to apply on this element.
* @param {object} opts * @param {object} opts
* @param {boolean} [opts.sanitize] Sanitize input delta. Removes ending newlines if set to true. * @param {boolean} [opts.sanitize] Sanitize input delta. Removes ending newlines if set to true.
* *