Files
DeepTutor/web/components/common/react-syntax-highlighter-prism-themes.d.ts
Dryice Liu 7ff6b23c2b feat(web): add code block theme registry and shell distribution
Add a registry of every installed Prism theme (46 options) using
individual module imports rather than the barrel, plus type
declarations for the style modules. Extend AppShell storage and
context so code-block preferences are available synchronously to
renderers outside /settings/*. Sync backend-loaded values from
SettingsContext into AppShell storage and add update helpers that
PUT only the changed field.
2026-07-18 14:51:47 +08:00

7 lines
187 B
TypeScript

declare module "react-syntax-highlighter/dist/esm/styles/prism/*" {
import type { CSSProperties } from "react";
const theme: Record<string, CSSProperties>;
export default theme;
}