Skip to content

Commit aec64e0

Browse files
chore: remove unused exports (#18038)
1 parent f331140 commit aec64e0

File tree

149 files changed

+165
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+165
-188
lines changed

site/.knip.jsonc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,5 @@
88
"@types/react-virtualized-auto-sizer",
99
"jest_workaround",
1010
"ts-proto"
11-
],
12-
// Don't report unused exports of types as long as they are used within the file.
13-
"ignoreExportsUsedInFile": {
14-
"interface": true,
15-
"type": true
16-
}
11+
]
1712
}

site/pnpm-lock.yaml

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ export interface FieldError {
1111
detail: string;
1212
}
1313

14-
export type FieldErrors = Record<FieldError["field"], FieldError["detail"]>;
14+
type FieldErrors = Record<FieldError["field"], FieldError["detail"]>;
1515

1616
export interface ApiErrorResponse {
1717
message: string;
1818
detail?: string;
1919
validations?: FieldError[];
2020
}
2121

22-
export type ApiError = AxiosError<ApiErrorResponse> & {
22+
type ApiError = AxiosError<ApiErrorResponse> & {
2323
response: AxiosResponse<ApiErrorResponse>;
2424
};
2525

site/src/api/queries/workspaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export const agentLogs = (agentId: string) => {
355355
};
356356

357357
// workspace usage options
358-
export interface WorkspaceUsageOptions {
358+
interface WorkspaceUsageOptions {
359359
usageApp: UsageAppName;
360360
connectionStatus: ConnectionStatus;
361361
workspaceId: string | undefined;

site/src/components/ActiveUserChart/ActiveUserChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const chartConfig = {
2020
color: "hsl(var(--highlight-purple))",
2121
},
2222
} satisfies ChartConfig;
23-
export interface ActiveUserChartProps {
23+
interface ActiveUserChartProps {
2424
data: { date: string; amount: number }[];
2525
}
2626

site/src/components/Avatar/AvatarData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Avatar } from "components/Avatar/Avatar";
22
import type { FC, ReactNode } from "react";
33

4-
export interface AvatarDataProps {
4+
interface AvatarDataProps {
55
title: ReactNode;
66
subtitle?: ReactNode;
77
src?: string;

site/src/components/Badge/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const badgeVariants = cva(
5050
},
5151
);
5252

53-
export interface BadgeProps
53+
interface BadgeProps
5454
extends React.HTMLAttributes<HTMLDivElement>,
5555
VariantProps<typeof badgeVariants> {
5656
asChild?: boolean;

site/src/components/CodeExample/CodeExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { FC } from "react";
33
import { MONOSPACE_FONT_FAMILY } from "theme/constants";
44
import { CopyButton } from "../CopyButton/CopyButton";
55

6-
export interface CodeExampleProps {
6+
interface CodeExampleProps {
77
code: string;
88
secret?: boolean;
99
className?: string;

site/src/components/CollapsibleSummary/CollapsibleSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const collapsibleSummaryVariants = cva(
2020
},
2121
);
2222

23-
export interface CollapsibleSummaryProps
23+
interface CollapsibleSummaryProps
2424
extends VariantProps<typeof collapsibleSummaryVariants> {
2525
/**
2626
* The label to display for the collapsible section

site/src/components/Conditionals/ChooseOne.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
type ReactNode,
66
} from "react";
77

8-
export interface CondProps {
8+
interface CondProps {
99
condition?: boolean;
1010
children?: ReactNode;
1111
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy