mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-08 15:16:52 +02:00
Add typescript types for highlightjs
This commit is contained in:
12
client/types/hightlight.d.ts
vendored
Normal file
12
client/types/hightlight.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
declare module 'highlight.js/lib/highlight' {
|
||||||
|
interface HighlightResult {
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
function highlight(lang: string, code: string): HighlightResult;
|
||||||
|
function registerLanguage(name: string, language: any): void;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module 'highlight.js/lib/languages/xml' {
|
||||||
|
|
||||||
|
}
|
15
package-lock.json
generated
15
package-lock.json
generated
@@ -1977,21 +1977,6 @@
|
|||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/highlight.js": {
|
|
||||||
"version": "9.12.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/highlight.js/-/highlight.js-9.12.3.tgz",
|
|
||||||
"integrity": "sha512-pGF/zvYOACZ/gLGWdQH8zSwteQS1epp68yRcVLJMgUck/MjEn/FBYmPub9pXT8C1e4a8YZfHo1CKyV8q1vKUnQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"@types/highlightjs": {
|
|
||||||
"version": "9.12.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/highlightjs/-/highlightjs-9.12.0.tgz",
|
|
||||||
"integrity": "sha512-MmUcjkDtCBfx2BPeLLTtJ5mFmGgWk9nAgZmNesixaGHOr0tCecsTU2iUgYvhRsWJSts2WbcpAtVPuIzZ0ybJ1A==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@types/highlight.js": "*"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@types/history": {
|
"@types/history": {
|
||||||
"version": "4.7.3",
|
"version": "4.7.3",
|
||||||
"resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.3.tgz",
|
"resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.3.tgz",
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
"@babel/preset-env": "^7.7.4",
|
"@babel/preset-env": "^7.7.4",
|
||||||
"@babel/preset-react": "^7.7.4",
|
"@babel/preset-react": "^7.7.4",
|
||||||
"@loadable/babel-plugin": "^5.10.3",
|
"@loadable/babel-plugin": "^5.10.3",
|
||||||
"@types/highlightjs": "^9.12.0",
|
|
||||||
"@types/loadable__component": "^5.10.0",
|
"@types/loadable__component": "^5.10.0",
|
||||||
"@types/react": "^16.9.13",
|
"@types/react": "^16.9.13",
|
||||||
"@types/react-dom": "^16.9.4",
|
"@types/react-dom": "^16.9.4",
|
||||||
|
Reference in New Issue
Block a user