deps: hljs 11

This commit is contained in:
07akioni 2021-06-11 01:15:15 +08:00
parent 17aa24cf88
commit 1024db26c3
2 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@
"css-render": "^0.15.2",
"date-fns": "^2.19.0",
"evtd": "^0.2.2",
"highlight.js": "^10.7.1",
"highlight.js": "^11.0.1",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"seemly": "^0.3.1",

View File

@ -1,5 +1,5 @@
import { inject, computed, ComputedRef } from 'vue'
import type { highlight, getLanguage } from 'highlight.js'
import type { HLJSApi } from 'highlight.js'
import { configProviderInjectionKey } from '../config-provider/src/ConfigProvider'
import { warn } from '../_utils'
@ -9,8 +9,8 @@ interface UseHljsProps {
}
export interface Hljs {
highlight: typeof highlight
getLanguage: typeof getLanguage
highlight: HLJSApi['highlight']
getLanguage: HLJSApi['getLanguage']
}
export default function useHljs (
props: UseHljsProps