Skip to content

Commit 74991bd

Browse files
committed
Fix build
1 parent ecbfda1 commit 74991bd

File tree

10 files changed

+66
-11
lines changed

10 files changed

+66
-11
lines changed

apps/docs/src/components/GitHubInstallButtons/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from "react"
22
import { RxGithubLogo } from "react-icons/rx"
33
import { VscVscode } from "react-icons/vsc"
4-
import { GITHUB_MAIN_REPO_URL, VSCODE_MARKETPLACE_URL } from "../../constants"
4+
import { GITHUB_MAIN_REPO_URL, VSCODE_MARKETPLACE_URL } from "@site/src/constants"
55
import styles from "./styles.module.css"
66

77
// VS Code API types

apps/docs/src/components/NavbarSocialIcons/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22
import { FaReddit, FaDiscord } from "react-icons/fa6"
3-
import { REDDIT_URL, DISCORD_URL } from "../../constants"
3+
import { REDDIT_URL, DISCORD_URL } from "@site/src/constants"
44
import styles from "./styles.module.css"
55

66
export default function NavbarSocialIcons(): JSX.Element {

apps/docs/src/components/VideoGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react"
2-
import videos from "../../docs/tutorial-videos.json"
2+
import videos from "@site/docs/tutorial-videos.json"
33

44
interface Video {
55
id: string

apps/docs/src/theme/DocBreadcrumbs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Link from "@docusaurus/Link"
77
import { translate } from "@docusaurus/Translate"
88
import HomeBreadcrumbItem from "@theme/DocBreadcrumbs/Items/Home"
99
import DocBreadcrumbsStructuredData from "@theme/DocBreadcrumbs/StructuredData"
10-
import CopyPageContent from "../../components/CopyPageURL"
10+
import CopyPageContent from "@site/src/components/CopyPageURL"
1111

1212
import styles from "./styles.module.css"
1313

apps/docs/src/theme/Footer/Layout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { type ReactNode } from "react"
22
import clsx from "clsx"
33
import { ThemeClassNames } from "@docusaurus/theme-common"
4-
import SocialIcons from "../../../components/SocialIcons"
4+
import SocialIcons from "@site/src/components/SocialIcons"
55
import type { Props } from "@theme/Footer/Layout"
66

77
export default function FooterLayout({ style, links, logo, copyright }: Props): ReactNode {

apps/docs/src/theme/MDXComponents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import MDXComponents from "@theme-original/MDXComponents"
2-
import Codicon from "../components/Codicon"
2+
import Codicon from "@site/src/components/Codicon"
33

44
export default {
55
...MDXComponents,

apps/docs/src/theme/Navbar/Content/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import SearchBar from "@theme/SearchBar"
88
import NavbarMobileSidebarToggle from "@theme/Navbar/MobileSidebar/Toggle"
99
import NavbarLogo from "@theme/Navbar/Logo"
1010
import NavbarSearch from "@theme/Navbar/Search"
11-
import GitHubInstallButtons from "../../../components/GitHubInstallButtons"
12-
import NavbarSocialIcons from "../../../components/NavbarSocialIcons"
11+
import GitHubInstallButtons from "@site/src/components/GitHubInstallButtons"
12+
import NavbarSocialIcons from "@site/src/components/NavbarSocialIcons"
1313

1414
import styles from "./styles.module.css"
1515

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
declare module "@site/src/constants" {
2+
export const GITHUB_REPO_URL: string
3+
export const GITHUB_ISSUES_URL: string
4+
export const GITHUB_NEW_ISSUE_URL: string
5+
export const DISCORD_URL: string
6+
export const REDDIT_URL: string
7+
export const TWITTER_URL: string
8+
export const BLUESKY_URL: string
9+
export const LINKEDIN_URL: string
10+
export const TIKTOK_URL: string
11+
export const GITHUB_MAIN_REPO_URL: string
12+
export const GITHUB_ISSUES_MAIN_URL: string
13+
export const GITHUB_FEATURES_URL: string
14+
export const VSCODE_MARKETPLACE_URL: string
15+
export const MAC_DIRECT_DOWNLOAD_URL: string
16+
export const WINDOWS_DIRECT_DOWNLOAD_URL: string
17+
export const LINUX_DIRECT_DOWNLOAD_URL: string
18+
}
19+
20+
declare module "@site/src/components/Codicon" {
21+
const Codicon: React.FC<{ name: string }>
22+
export default Codicon
23+
}
24+
25+
declare module "@site/src/components/CopyPageURL" {
26+
const CopyPageURL: React.FC
27+
export default CopyPageURL
28+
}
29+
30+
declare module "@site/src/components/SocialIcons" {
31+
const SocialIcons: React.FC
32+
export default SocialIcons
33+
}
34+
35+
declare module "@site/src/components/GitHubInstallButtons" {
36+
const GitHubInstallButtons: React.FC
37+
export default GitHubInstallButtons
38+
}
39+
40+
declare module "@site/src/components/NavbarSocialIcons" {
41+
const NavbarSocialIcons: React.FC
42+
export default NavbarSocialIcons
43+
}
44+
45+
declare module "@site/docs/tutorial-videos.json" {
46+
interface Video {
47+
id: string
48+
title: string
49+
}
50+
const videos: { videos: Video[] }
51+
export default videos
52+
}

knip.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
},
2222
"packages/{build,cloud,evals,ipc,telemetry,types}": {
2323
"project": ["src/**/*.ts"]
24+
},
25+
"apps/docs": {
26+
"entry": ["src/**/*.{ts,tsx}"],
27+
"project": ["src/**/*.{ts,tsx}"]
2428
}
2529
}
2630
}

packages/types/src/api.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import type { RooCodeSettings } from "./global-settings.js"
66
import type { ProviderSettingsEntry, ProviderSettings } from "./provider-settings.js"
77
import type { IpcMessage, IpcServerEvents } from "./ipc.js"
88

9-
// Ensure all properties are required for EventEmitter compatibility
10-
export type RooCodeAPIEvents = Required<RooCodeEvents>
9+
export type RooCodeAPIEvents = RooCodeEvents
1110

12-
export interface RooCodeAPI extends EventEmitter<RooCodeAPIEvents> {
11+
export interface RooCodeAPI extends EventEmitter<RooCodeAPIEvents & Record<string, unknown[]>> {
1312
/**
1413
* Starts a new task with an optional initial message and images.
1514
* @param task Optional initial task message.

0 commit comments

Comments
 (0)