We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757e880 commit f6060adCopy full SHA for f6060ad
packages/shikiji-core/src/types.ts
@@ -45,7 +45,7 @@ interface Nothing {}
45
*/
46
export type StringLiteralUnion<T extends U, U = string> = T | (U & Nothing)
47
48
-export type ResolveBundleKey<T extends string> = never extends T ? string : T
+export type ResolveBundleKey<T extends string> = [T] extends [never] ? string : T
49
50
export interface ShikiInternal {
51
setTheme(name: string | ThemeRegistration | ThemeRegistrationRaw): {
0 commit comments