Skip to content

Commit

Permalink
chore: update typescript deps
Browse files Browse the repository at this point in the history
  • Loading branch information
LastLeaf committed Feb 19, 2025
1 parent ecea390 commit b6c2274
Show file tree
Hide file tree
Showing 5 changed files with 333 additions and 93 deletions.
2 changes: 1 addition & 1 deletion glass-easel-miniprogram-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"less-loader": "^11.0.0",
"mini-css-extract-plugin": "^2.6.1",
"ts-loader": "^9.4.2",
"typescript": "^5.2.2",
"typescript": "^5.4.5",
"webpack": "^5.85.0",
"webpack-cli": "^5.0.1"
}
Expand Down
4 changes: 2 additions & 2 deletions glass-easel/src/data_proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ export class DataGroup<
// splice update for properties
if (Array.isArray(oldData)) {
const c = change as DataSplice
const spliceIndex = maybeSpliceIndex as number
const spliceIndex = maybeSpliceIndex
normalizedSpliceIndex =
spliceIndex >= 0 && spliceIndex < oldData.length ? spliceIndex : oldData.length
c[2] = normalizedSpliceIndex
Expand Down Expand Up @@ -855,7 +855,7 @@ export class DataGroup<
const oldData = (curData as DataList)[curSlice as string]
if (Array.isArray(oldData)) {
const c = change as DataSplice
const spliceIndex = maybeSpliceIndex as number
const spliceIndex = maybeSpliceIndex
normalizedSpliceIndex =
spliceIndex >= 0 && spliceIndex < oldData.length ? spliceIndex : oldData.length
c[2] = normalizedSpliceIndex
Expand Down
2 changes: 1 addition & 1 deletion glass-easel/tests/types/chaining.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,13 @@ componentSpace
/* */
})

// @ts-expect-error
componentSpace
.define()
.data(() => ({
str: 'foo',
objFoo: { foo: 'foo' },
}))
// @ts-expect-error
.observer(['str', 'nonExists'], () => {
/* */
})
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"@tsd/typescript": "^5.2.2",
"@types/jest": "^26.0.24",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"eslint": "^7.17.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.22.1",
Expand All @@ -29,8 +29,8 @@
"ts-loader": "^9.4.4",
"tsd-lite": "^0.8.0",
"tslib": "^2.6.2",
"typedoc": "^0.25.1",
"typescript": "^5.2.2",
"typedoc": "^0.25.13",
"typescript": "~5.4.5",
"webpack": "^5.85.0",
"webpack-cli": "^5.0.1",
"webpack-sources": "^3.2.3"
Expand Down
Loading

0 comments on commit b6c2274

Please sign in to comment.