Skip to content

Commit

Permalink
fix: type error in mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
jiawei686 authored and humyfred committed Jan 7, 2022
1 parent 6cb72fe commit a5e6820
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"@types/jest": "^27.0.3",
"@types/jsdom": "^16.2.13",
"@types/lodash": "^4.14.170",
"@types/mathjax": "^0.0.37",
"@types/mermaid": "^8.2.6",
"@types/virtual-dom": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^4.27.0",
Expand Down
2 changes: 1 addition & 1 deletion src/core/hooks/Suggester.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class SuggesterPanel {
if (!this.$suggesterPanel) {
return false;
}
const { key, keyCode } = evt;
const { keyCode } = evt;
// up down
if ([38, 40].includes(keyCode)) {
this.cursorMove = false;
Expand Down
1 change: 1 addition & 0 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ declare global {
mermaid?: mermaid.Mermaid;
mermaidAPI?: mermaid.Mermaid['mermaidAPI'];
echarts?: echarts.ECharts;
MathJax?: any;
}
}
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1700,11 +1700,6 @@
resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.178.tgz#341f6d2247db528d4a13ddbb374bcdc80406f4f8"
integrity sha512-0d5Wd09ItQWH1qFbEyQ7oTQ3GZrMfth5JkbN3EvTKLXcHLRDSXeLnlvlOn0wvxVIwK5o2M8JzP/OWz7T3NRsbw==

"@types/mathjax@^0.0.37":
version "0.0.37"
resolved "https://registry.npmjs.org/@types/mathjax/-/mathjax-0.0.37.tgz#31a0076ced55c2e12da75edb44db45098b6feed6"
integrity sha512-y0WSZBtBNQwcYipTU/BhgeFu1EZNlFvUNCmkMXV9kBQZq7/o5z82dNVyH3yy2Xv5zzeNeQoHSL4Xm06+EQiH+g==

"@types/mermaid@^8.2.6":
version "8.2.7"
resolved "https://registry.npmjs.org/@types/mermaid/-/mermaid-8.2.7.tgz#1f9610c241361f66ed0591d3186e0bf3ed2211c8"
Expand Down

0 comments on commit a5e6820

Please sign in to comment.