(t: unknown)
| 42 | } |
| 43 | |
| 44 | function themeName(t: unknown): string { |
| 45 | if (typeof t === "string") return t; |
| 46 | if (t && typeof t === "object" && "name" in t) return (t as { name: string }).name; |
| 47 | return "custom"; |
| 48 | } |
| 49 | |
| 50 | // ponytail: cast to satisfy cross-package ThemeInput conflicts; runtime shape matches CodeHighlighterPlugin |
| 51 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |