Skip to content

Commit

Permalink
🏷️ fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
volatile-static committed Jun 14, 2024
1 parent c9fcc09 commit 013dd92
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 424 deletions.
399 changes: 1 addition & 398 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,23 @@
"highcharts-vue": "^2.0.1",
"segmentit": "^2.0.3",
"tdesign-vue-next": "^1.9.6",
"vue": "^3.4.27",
"vue": "^3.4.28",
"zotero-plugin-toolkit": "^2.3.32"
},
"devDependencies": {
"@gitee/typescript-sdk-v5": "^5.4.84",
"@tsconfig/node-lts": "^20.1.3",
"@types/animejs": "^3.1.12",
"@types/bluebird": "^3.5.42",
"@types/node": "^20.13.0",
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue-jsx": "^4.0.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"bluebird": "^3.7.2",
"compressing": "^1.10.1",
"esbuild-plugin-svg": "^0.1.0",
"esbuild-sass-plugin": "^3.3.1",
"eslint": "^8.57.0",
Expand All @@ -80,11 +78,10 @@
"lodash": "^4.17.21",
"prettier": "3.3.2",
"tdesign-icons-vue-next": "^0.2.2",
"ts-node": "^10.9.2",
"tsx": "^4.15.2",
"tsx": "^4.15.4",
"unplugin-auto-import": "^0.17.6",
"unplugin-vue-components": "^0.27.0",
"vite": "^5.2.12",
"vite": "^5.3.1",
"vue-tsc": "^2.0.21",
"zotero-plugin-scaffold": "^0.0.31",
"zotero-types": "^2.0.1"
Expand Down Expand Up @@ -160,4 +157,4 @@
"src"
]
}
}
}
2 changes: 1 addition & 1 deletion src/bootstrap/modules/minimap/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { React, ReactDOM } from '../global';
/**
* 毫秒级刷新
*/
export default function renderMinimap(container: HTMLElement, props: MinimapProps) {
export default function renderMinimap(container: Element, props: MinimapProps) {
try {
ReactDOM.render(
<Minimap
Expand Down
12 changes: 5 additions & 7 deletions src/bootstrap/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
"strictNullChecks": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"allowJs": true
},
"include": [
"./",
"../../node_modules/zotero-types/index.d.ts"
],
"exclude": []
"allowJs": true,
"types": [
"zotero-types"
]
}
}
2 changes: 1 addition & 1 deletion src/modules/vite
Submodule vite updated 133 files
6 changes: 5 additions & 1 deletion src/vue/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ declare namespace React {
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
class?: string;
}
}
}

declare namespace global {
const setTimeout: typeof window.setTimeout;
}
9 changes: 1 addition & 8 deletions tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,5 @@
"inlineSourceMap": true,
"isolatedModules": false,
"forceConsistentCasingInFileNames": true
},
"ts-node": {
"esm": true,
"experimentalSpecifierResolution": "node"
},
"lib": [
"esnext"
],
}
}

0 comments on commit 013dd92

Please sign in to comment.