Skip to content

Commit

Permalink
chore(deps): update types to 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Dec 29, 2024
1 parent d4ab422 commit 8aef798
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"update-deps": "npm update --save"
},
"peerDependencies": {
"zotero-types": "^3.0.10"
"zotero-types": "^3.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.12.1",
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ const style = `

interface DialogData {
[key: string | number | symbol]: any;
loadLock?: _ZoteroTypes.PromiseObject;
loadLock?: _ZoteroTypes.Promise.PromiseObject;
loadCallback?: () => void;
unloadLock?: _ZoteroTypes.PromiseObject;
unloadLock?: _ZoteroTypes.Promise.PromiseObject;
unloadCallback?: () => void;
beforeUnloadCallback?: () => void;
l10nFiles?: string | string[];
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/progressWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const icons: { [key: string | number]: string } = {
*/
export class ProgressWindowHelper {
win: Zotero.ProgressWindow;
private lines: Zotero.ItemProgress[];
private lines: _ZoteroTypes.ItemProgress[];
private closeTime: number | undefined;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/managers/fieldHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class FieldHookManager extends ManagerTool {
for (const type of Object.keys(this.patchHelpers) as Array<PatchType>) {
const helper = this.patchHelpers[type];
helper.setData({
target: this.getGlobal("Zotero").Item.prototype as typeof Zotero.Item,
target: this.getGlobal("Zotero").Item.prototype,
funcSign: type,
patcher: (original) =>
function (field: string | number, ...args: any[]) {
Expand Down

0 comments on commit 8aef798

Please sign in to comment.