Three unrelated type errors that each pointed at something actually broken: - Dashboard.CodeEditor was deleted inab03b17("Projects") while the /code-editor route and the dock's Editor item kept pointing at it, so the route rendered undefined. Screen restored. - Appearance.tsx imported 'themes', a workspace deleted in0746844. Nothing reads settings.appearance.colorTheme and no theme CSS survives, so the picker was writing a value with no consumer. Removed it and the setting; colorMode stays, it is live. - officerdev exported both a component and a type named AppRegistry, so `import { AppRegistry }` resolved to the type and <AppRegistry /> failed to typecheck. Renamed the Record type to AppRegistryMap. Also declares "*.css" so side-effect stylesheet imports resolve. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
30 lines
645 B
TypeScript
30 lines
645 B
TypeScript
// Generated by `bun init`
|
|
|
|
declare module "*.svg" {
|
|
/**
|
|
* A path to the SVG file
|
|
*/
|
|
const path: `${string}.svg`;
|
|
export = path;
|
|
}
|
|
|
|
// Plain stylesheets are imported for their side effect only; the bundler injects them. The more
|
|
// specific "*.module.css" declaration below still wins for CSS modules.
|
|
declare module "*.css";
|
|
|
|
declare module "*.module.css" {
|
|
/**
|
|
* A record of class names to their corresponding CSS module classes
|
|
*/
|
|
const classes: { readonly [key: string]: string };
|
|
export = classes;
|
|
}
|
|
|
|
declare module "*.png" {
|
|
/**
|
|
* A path to the SVG file
|
|
*/
|
|
const path: `${string}.png`;
|
|
export = path;
|
|
}
|