MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / themeName

Function themeName

webapp/_webapp/src/libs/code-plugin.ts:44–48  ·  view source on GitHub ↗
(t: unknown)

Source from the content-addressed store, hash-verified

42}
43
44function 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

Callers 1

highlightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected