8000 fix: types · antfu/shikiji@cd13e8f · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit cd13e8f

Browse files
committed
fix: types
1 parent e85fbb3 commit cd13e8f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@
8181
"@antfu/eslint-config": "^0.40.2",
8282
"@antfu/ni": "^0.21.5",
8383
"@antfu/utils": "^0.7.5",
84-
"@rollup/plugin-commonjs": "^25.0.3",
84+
"@rollup/plugin-commonjs": "^25.0.4",
8585
"@rollup/plugin-json": "^6.0.0",
8686
"@rollup/plugin-node-resolve": "^15.1.0",
8787
"@rollup/plugin-replace": "^5.0.2",
8888
"@rollup/plugin-terser": "^0.4.3",
8989
"@types/fs-extra": "^11.0.1",
90-
"@types/node": "^20.4.9",
90+
"@types/node": "^20.4.10",
9191
"@vitest/coverage-v8": "^0.34.1",
9292
"ansi-sequence-parser": "^1.1.1",
9393
"bumpp": "^9.1.1",
94-
"eslint": "^8.46.0",
94+
"eslint": "^8.47.0",
9595
"esno": "^0.17.0",
9696
"fast-glob": "^3.3.1",
9797
"fs-extra": "^11.1.1",

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface HighlighterCoreOptions {
1414
loadWasm?: OnigurumaLoadOptions | (() => Promise<OnigurumaLoadOptions>)
1515
}
1616

17-
export type HighlighterCore = ReturnType<typeof getHighlighterCore>
17+
export type HighlighterCore = Awaited<ReturnType<typeof getHighlighterCore>>
1818

1919
export {
2020
loadWasm,

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface HighlighterOptions {
1717
langs?: (LanguageInput | BuiltinLanguages)[]
1818
}
1919

20-
export type Highlighter = ReturnType<typeof getHighlighter>
20+
export type Highlighter = Awaited<ReturnType<typeof getHighlighter>>
2121

2222
export async function getHighlighter(options: HighlighterOptions = {}) {
2323
function resolveLang(lang: LanguageInput | BuiltinLanguages): LanguageInput {

0 commit comments

Comments
 (0)
0