fix: tsc errors
update: scaffold chore(publish): release v2.0.11 fix: tsc errors
This commit is contained in:
parent
08adac1c43
commit
c55694018a
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -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": {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue