fix: typing bug

This commit is contained in:
xiangyu 2022-08-31 18:48:37 +08:00
parent cef9153bc5
commit 7c9a35591e
6 changed files with 16 additions and 11 deletions

View File

@ -1,7 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
},
"exclude": ["node_modules", "builds"]
}

View File

@ -34,6 +34,6 @@
},
"devDependencies": {
"release-it": "^14.14.0",
"zotero-types": "^0.0.1"
"zotero-types": "^0.0.3"
}
}

View File

@ -1,4 +1,3 @@
import { Zotero } from "zotero-types";
import { Addon, addonName } from "./addon";
import AddonModule from "./module";

View File

@ -1,4 +1,3 @@
import { Zotero } from "zotero-types";
import { Addon } from "./addon";
Zotero.AddonTemplate = new Addon();

View File

@ -1,4 +1,3 @@
import { XUL, Zotero } from "zotero-types";
import { Addon } from "./addon";
import AddonModule from "./module";
const { addonRef } = require("../package.json");

15
tsconfig.json Normal file
View File

@ -0,0 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
},
"include": [
"src",
"typing",
"node_modules/zotero-types"
],
"exclude": [
"builds",
"addon"
]
}