Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit f6060ad

Browse files
committedDec 16, 2023
fix(core): getHighlighter type inference, close #50
1 parent 757e880 commit f6060ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/shikiji-core/src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface Nothing {}
4545
*/
4646
export type StringLiteralUnion<T extends U, U = string> = T | (U & Nothing)
4747

48-
export type ResolveBundleKey<T extends string> = never extends T ? string : T
48+
export type ResolveBundleKey<T extends string> = [T] extends [never] ? string : T
4949

5050
export interface ShikiInternal {
5151
setTheme(name: string | ThemeRegistration | ThemeRegistrationRaw): {

0 commit comments

Comments
 (0)
This repository has been archived.