This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 81
81
"@antfu/eslint-config" : " ^0.40.2" ,
82
82
"@antfu/ni" : " ^0.21.5" ,
83
83
"@antfu/utils" : " ^0.7.5" ,
84
- "@rollup/plugin-commonjs" : " ^25.0.3 " ,
84
+ "@rollup/plugin-commonjs" : " ^25.0.4 " ,
85
85
"@rollup/plugin-json" : " ^6.0.0" ,
86
86
"@rollup/plugin-node-resolve" : " ^15.1.0" ,
87
87
"@rollup/plugin-replace" : " ^5.0.2" ,
88
88
"@rollup/plugin-terser" : " ^0.4.3" ,
89
89
"@types/fs-extra" : " ^11.0.1" ,
90
- "@types/node" : " ^20.4.9 " ,
90
+ "@types/node" : " ^20.4.10 " ,
91
91
"@vitest/coverage-v8" : " ^0.34.1" ,
92
92
"ansi-sequence-parser" : " ^1.1.1" ,
93
93
"bumpp" : " ^9.1.1" ,
94
- "eslint" : " ^8.46 .0" ,
94
+ "eslint" : " ^8.47 .0" ,
95
95
"esno" : " ^0.17.0" ,
96
96
"fast-glob" : " ^3.3.1" ,
97
97
"fs-extra" : " ^11.1.1" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export interface HighlighterCoreOptions {
14
14
loadWasm ?: OnigurumaLoadOptions | ( ( ) => Promise < OnigurumaLoadOptions > )
15
15
}
16
16
17
- export type HighlighterCore = ReturnType < typeof getHighlighterCore >
17
+ export type HighlighterCore = Awaited < ReturnType < typeof getHighlighterCore > >
18
18
19
19
export {
20
20
loadWasm ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface HighlighterOptions {
17
17
langs ?: ( LanguageInput | BuiltinLanguages ) [ ]
18
18
}
19
19
20
- export type Highlighter = ReturnType < typeof getHighlighter >
20
+ export type Highlighter = Awaited < ReturnType < typeof getHighlighter > >
21
21
22
22
export async function getHighlighter ( options : HighlighterOptions = { } ) {
23
23
function resolveLang ( lang : LanguageInput | BuiltinLanguages ) : LanguageInput {
You can’t perform that action at this time.
0 commit comments