Skip to content

Commit

Permalink
Upgraded to TypeScript 5.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jun 29, 2024
1 parent 748922c commit bf33d35
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Dates are in `YYYY-MM-DD` format and versions are in [semantic versioning](http:
- [#488](https://github.com/wordplaydev/wordplay/issues/488). Added animations off indicator on stage.
- [#500](https://github.com/wordplaydev/wordplay/issues/500). Improved explanation when there's a space between an evaluation's name and inputs.

### Maintenance

- Upgraded to TypeScript 5.5.

## 0.10.1 2024-06-22

### Fixed
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@
"ts-json-schema-generator": "^1",
"tslib": "^2.6",
"tsx": "^4.7.0",
"typescript": "^5.4",
"typescript": "^5.5.2",
"vite": "^5.2.7",
"vite-plugin-eslint": "^1.8.1",
"vitest": "^1.4.0"
},
"type": "module",
"dependencies": {
"@axe-core/playwright": "^4.8.5",
"colorjs.io": "^0",
"colorjs.io": "^5.2",
"decimal.js": "^10",
"dexie": "^4.0",
"firebase": "^10.11.0",
Expand Down
5 changes: 2 additions & 3 deletions src/components/editor/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,8 @@
spaceView instanceof HTMLElement && spaceView.dataset.id
? parseInt(spaceView.dataset.id)
: undefined;
return tokenID
? [source.getNodeByID(tokenID) as Token, spaceView]
: undefined;
const node = tokenID ? source.getNodeByID(tokenID) : undefined;
return node instanceof Token ? [node, spaceView] : undefined;
}
function getCaretPositionAt(event: PointerEvent): number | undefined {
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/Token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class Token extends Node {
return [];
}

isLeaf() {
isLeaf(): this is Token {
return true;
}

Expand Down

0 comments on commit bf33d35

Please sign in to comment.