fix: tsc errors

update: scaffold

chore(publish): release v2.0.11

fix: tsc errors
This commit is contained in:
windingwind 2024-10-03 16:21:50 +02:00
parent 08adac1c43
commit c55694018a
5 changed files with 397 additions and 2115 deletions

View File

@ -90,7 +90,7 @@ and:
- Download the plugin (.xpi file) from below. - Download the plugin (.xpi file) from below.
- [Latest Version: 2.0.9](https://github.com/windingwind/zotero-better-notes/releases/download/v2.0.9/better-notes-for-zotero.xpi) - [Latest Version: 2.0.11](https://github.com/windingwind/zotero-better-notes/releases/download/v2.0.11/better-notes-for-zotero.xpi)
- [Latest Stable](https://github.com/windingwind/zotero-better-notes/releases/latest) - [Latest Stable](https://github.com/windingwind/zotero-better-notes/releases/latest)
- [All Releases](https://github.com/windingwind/zotero-better-notes/releases) - [All Releases](https://github.com/windingwind/zotero-better-notes/releases)

2495
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -84,7 +84,7 @@
"replace-in-file": "^7.2.0", "replace-in-file": "^7.2.0",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"xslt3": "^2.6.0", "xslt3": "^2.6.0",
"zotero-plugin-scaffold": "^0.1.2", "zotero-plugin-scaffold": "^0.1.6",
"zotero-types": "^2.0.1" "zotero-types": "^2.0.1"
}, },
"eslintConfig": { "eslintConfig": {

View File

@ -165,10 +165,11 @@ export class OutlinePicker extends PluginCEBase {
} }
getSelectedSection(selection?: { selected: Set<number> }): NoteNodeData { getSelectedSection(selection?: { selected: Set<number> }): NoteNodeData {
return this.noteOutline[ const selected = (
(selection || this.noteOutlineView.treeInstance.selection).selected selection || this.noteOutlineView.treeInstance.selection
.values() ).selected
.next().value .values()
]?.model; .next().value;
return this.noteOutline[selected!]?.model;
} }
} }

View File

@ -404,7 +404,7 @@ function getSelectedIndex() {
addon.data.template.editor.tableHelper?.treeInstance.selection.selected addon.data.template.editor.tableHelper?.treeInstance.selection.selected
.values() .values()
.next().value; .next().value;
return selectedIndex; return selectedIndex as number;
} }
function createTemplate() { function createTemplate() {