Skip to content

Commit 975424b

Browse files
dependabot[bot]matifaliBrunoQuaresma
authored
chore: bump the eslint group in /site with 5 updates (coder#8636)
* chore: bump the eslint group in /site with 5 updates Bumps the eslint group in /site with 5 updates: | Package | Update | | --- | --- | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | 5.62.0 to 6.1.0 | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | 5.62.0 to 6.1.0 | | [eslint](https://github.com/eslint/eslint) | 8.44.0 to 8.45.0 | | [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) | 7.31.1 to 7.33.0 | | [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | 47.0.0 to 48.0.0 | Updates `@typescript-eslint/eslint-plugin` from 5.62.0 to 6.1.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.1.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 5.62.0 to 6.1.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.1.0/packages/parser) Updates `eslint` from 8.44.0 to 8.45.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.44.0...v8.45.0) Updates `eslint-plugin-react` from 7.31.1 to 7.33.0 - [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases) - [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](jsx-eslint/eslint-plugin-react@v7.31.1...v7.33.0) Updates `eslint-plugin-unicorn` from 47.0.0 to 48.0.0 - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](sindresorhus/eslint-plugin-unicorn@v47.0.0...v48.0.0) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major dependency-group: eslint - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-major dependency-group: eslint - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor dependency-group: eslint - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-minor dependency-group: eslint - dependency-name: eslint-plugin-unicorn dependency-type: direct:development update-type: version-update:semver-major dependency-group: eslint ... Signed-off-by: dependabot[bot] <support@github.com> * ignore no-redundant-type-constituents * Fix minor lint errors * Discard changes to site/.eslintrc.yaml * Fix redudant types --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Atif Ali <atif@coder.com> Co-authored-by: BrunoQuaresma <bruno_nonato_quaresma@hotmail.com> Co-authored-by: Muhammad Atif Ali <matifali@live.com>
1 parent 92798e9 commit 975424b

Some content is hidden

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

42 files changed

+213
-164
lines changed

site/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,22 @@
129129
"@types/react-window": "1.8.5",
130130
"@types/ua-parser-js": "0.7.36",
131131
"@types/uuid": "9.0.2",
132-
"@typescript-eslint/eslint-plugin": "5.62.0",
133-
"@typescript-eslint/parser": "5.62.0",
132+
"@typescript-eslint/eslint-plugin": "6.1.0",
133+
"@typescript-eslint/parser": "6.1.0",
134134
"@xstate/cli": "0.5.2",
135135
"chromatic": "6.20.0",
136-
"eslint": "8.44.0",
136+
"eslint": "8.45.0",
137137
"eslint-config-prettier": "8.8.0",
138138
"eslint-import-resolver-typescript": "3.5.5",
139139
"eslint-plugin-compat": "4.1.4",
140140
"eslint-plugin-eslint-comments": "3.2.0",
141141
"eslint-plugin-import": "2.27.5",
142142
"eslint-plugin-jest": "27.2.2",
143143
"eslint-plugin-jsx-a11y": "6.7.1",
144-
"eslint-plugin-react": "7.31.1",
144+
"eslint-plugin-react": "7.33.0",
145145
"eslint-plugin-react-hooks": "4.6.0",
146146
"eslint-plugin-storybook": "0.6.12",
147-
"eslint-plugin-unicorn": "47.0.0",
147+
"eslint-plugin-unicorn": "48.0.0",
148148
"jest": "29.5.0",
149149
"jest-canvas-mock": "2.4.0",
150150
"jest-fetch-mock": "3.0.3",

site/src/api/errors.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const mapApiErrorToFieldErrors = (
5959
* @returns error's message if ApiError or Error, else defaultMessage
6060
*/
6161
export const getErrorMessage = (
62-
error: Error | ApiError | unknown,
62+
error: unknown,
6363
defaultMessage: string,
6464
): string =>
6565
isApiError(error)
@@ -74,19 +74,15 @@ export const getErrorMessage = (
7474
* @returns a combined validation error message if the error is an ApiError
7575
* and contains validation messages for different form fields.
7676
*/
77-
export const getValidationErrorMessage = (
78-
error: Error | ApiError | unknown,
79-
): string => {
77+
export const getValidationErrorMessage = (error: unknown): string => {
8078
const validationErrors =
8179
isApiError(error) && error.response.data.validations
8280
? error.response.data.validations
8381
: []
8482
return validationErrors.map((error) => error.detail).join("\n")
8583
}
8684

87-
export const getErrorDetail = (
88-
error: Error | ApiError | unknown,
89-
): string | undefined | null =>
85+
export const getErrorDetail = (error: unknown): string | undefined | null =>
9086
isApiError(error)
9187
? error.response.data.detail
9288
: error instanceof Error

site/src/components/AuditLogRow/AuditLogDiff/AuditLogDiff.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getDiffValue = (value: unknown): string => {
1919
return "null"
2020
}
2121

22-
return value.toString()
22+
return String(value)
2323
}
2424

2525
export const AuditLogDiff: FC<{ diff: AuditLog["diff"] }> = ({ diff }) => {

site/src/components/DeploySettingsLayout/Option.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { makeStyles } from "@mui/styles"
2-
import { PropsWithChildren, FC, ReactNode } from "react"
2+
import { PropsWithChildren, FC } from "react"
33
import { MONOSPACE_FONT_FAMILY } from "theme/constants"
44
import { DisabledBadge, EnabledBadge } from "./Badges"
55

@@ -19,9 +19,7 @@ const NotSet: FC = () => {
1919
return <span className={styles.optionValue}>Not set</span>
2020
}
2121

22-
export const OptionValue: FC<{ children?: ReactNode | unknown }> = ({
23-
children,
24-
}) => {
22+
export const OptionValue: FC<{ children?: unknown }> = ({ children }) => {
2523
const styles = useStyles()
2624

2725
if (typeof children === "boolean") {

site/src/components/DeploySettingsLayout/Options.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const defaultOption: DeploymentOption = {
1313
describe("optionValue", () => {
1414
it.each<{
1515
option: DeploymentOption
16-
expected: string | string[] | unknown
16+
expected: unknown
1717
}>([
1818
{
1919
option: {

site/src/components/DeploySettingsLayout/OptionsTable.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ const OptionsTable: FC<{
6262
}
6363

6464
// optionValue is a helper function to format the value of a specific deployment options
65-
export function optionValue(
66-
option: DeploymentOption,
67-
): string[] | string | unknown {
65+
export function optionValue(option: DeploymentOption) {
6866
switch (option.name) {
6967
case "Max Token Lifetime":
7068
case "Session Duration":

site/src/components/Icons/VSCodeIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const VSCodeIcon = (props: SvgIconProps) => (
55
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none">
66
<mask
77
id="vscode_mask0"
8-
mask-type="alpha"
8+
style={{ maskType: "alpha" }}
99
maskUnits="userSpaceOnUse"
1010
x="0"
1111
y="0"

site/src/components/Icons/VSCodeInsidersIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const VSCodeInsidersIcon = (props: SvgIconProps) => (
1111
>
1212
<mask
1313
id="mask0"
14-
mask-type="alpha"
14+
style={{ maskType: "alpha" }}
1515
maskUnits="userSpaceOnUse"
1616
x="0"
1717
y="0"

site/src/components/LicenseBanner/LicenseBannerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const LicenseBannerView: React.FC<LicenseBannerViewProps> = ({
6565
<Expander expanded={showDetails} setExpanded={setShowDetails}>
6666
<ul className={styles.list}>
6767
{messages.map((message) => (
68-
<li className={styles.listItem} key={`${message}`}>
68+
<li className={styles.listItem} key={message}>
6969
{message}
7070
</li>
7171
))}

site/src/components/ServiceBanner/ServiceBannerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const ServiceBannerView: React.FC<ServiceBannerViewProps> = ({
3131
]
3232
return (
3333
<div
34-
className={`${styles.container}`}
34+
className={styles.container}
3535
style={{ backgroundColor: backgroundColor }}
3636
>
3737
{preview && <Pill text="Preview" type="info" lightBorder />}

site/src/components/SettingsAccountForm/SettingsAccountForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface AccountFormProps {
3131
isLoading: boolean
3232
initialValues: AccountFormValues
3333
onSubmit: (values: AccountFormValues) => void
34-
updateProfileError?: Error | unknown
34+
updateProfileError?: unknown
3535
// initialTouched is only used for testing the error state of the form.
3636
initialTouched?: FormikTouched<AccountFormValues>
3737
}

site/src/components/Workspace/Workspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface WorkspaceProps {
6464
canChangeVersions: boolean
6565
hideSSHButton?: boolean
6666
hideVSCodeDesktopButton?: boolean
67-
workspaceErrors: Partial<Record<WorkspaceErrors, Error | unknown>>
67+
workspaceErrors: Partial<Record<WorkspaceErrors, unknown>>
6868
buildInfo?: TypesGen.BuildInfoResponse
6969
sshPrefix?: string
7070
template?: TypesGen.Template

site/src/components/WorkspacesTable/WorkspacesTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface WorkspacesTableProps {
1919
workspaces?: Workspace[]
2020
isUsingFilter: boolean
2121
onUpdateWorkspace: (workspace: Workspace) => void
22-
error?: Error | unknown
22+
error?: unknown
2323
}
2424

2525
export const WorkspacesTable: FC<WorkspacesTableProps> = ({

site/src/components/WorkspacesTable/WorkspacesTableBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface TableBodyProps {
1414
workspaces?: Workspace[]
1515
isUsingFilter: boolean
1616
onUpdateWorkspace: (workspace: Workspace) => void
17-
error?: Error | unknown
17+
error?: unknown
1818
}
1919

2020
export const WorkspacesTableBody: FC<

site/src/contexts/ProxyContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface ProxyContextValue {
4646
// isFetched is true when the 'proxies' api call is complete.
4747
isFetched: boolean
4848
isLoading: boolean
49-
error?: Error | unknown
49+
error?: unknown
5050
// proxyLatencies is a map of proxy id to latency report. If the proxyLatencies[proxy.id] is undefined
5151
// then the latency has not been fetched yet. Calculations happen async for each proxy in the list.
5252
// Refer to the returned report for a given proxy for more information.

site/src/contexts/useProxyLatency.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const useProxyLatency = (
135135
// dispatchProxyLatenciesGuarded will assign the latency to the proxy
136136
// via the reducer. But it will only do so if the performance entry is
137137
// a resource entry that we care about.
138-
const dispatchProxyLatenciesGuarded = (entry: PerformanceEntry): void => {
138+
const dispatchProxyLatenciesGuarded = (entry: PerformanceEntry) => {
139139
if (entry.entryType !== "resource") {
140140
// We should never get these, but just in case.
141141
return
@@ -208,7 +208,7 @@ export const useProxyLatency = (
208208
})
209209

210210
// When all the proxy requests finish
211-
Promise.all(proxyRequests)
211+
void Promise.all(proxyRequests)
212212
// TODO: If there is an error on any request, we might want to store some indicator of that?
213213
.finally(() => {
214214
// takeRecords will return any entries that were not called via the callback yet.

site/src/pages/AuditPage/AuditPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface AuditPageViewProps {
3737
onPageChange: (page: number) => void
3838
isNonInitialPage: boolean
3939
isAuditLogVisible: boolean
40-
error?: Error | unknown
40+
error?: unknown
4141
filterProps: ComponentProps<typeof AuditFilter>
4242
}
4343

site/src/pages/CreateTokenPage/CreateTokenForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import { Stack } from "components/Stack/Stack"
2525
interface CreateTokenFormProps {
2626
form: FormikContextType<CreateTokenData>
2727
maxTokenLifetime?: number
28-
formError: Error | unknown
29-
setFormError: (arg0: Error | unknown) => void
28+
formError: unknown
29+
setFormError: (arg0: unknown) => void
3030
isCreating: boolean
3131
creationFailed: boolean
3232
}

site/src/pages/CreateTokenPage/CreateTokenPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const CreateTokenPage: FC = () => {
4343
queryFn: getTokenConfig,
4444
})
4545

46-
const [formError, setFormError] = useState<unknown | undefined>(undefined)
46+
const [formError, setFormError] = useState<unknown>(undefined)
4747

4848
const onCreateSuccess = () => {
4949
displaySuccess(t("createToken.createSuccess"))

site/src/pages/GroupsPage/CreateGroupPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const validationSchema = Yup.object({
1616

1717
export type CreateGroupPageViewProps = {
1818
onSubmit: (data: CreateGroupRequest) => void
19-
formErrors: unknown | undefined
19+
formErrors?: unknown
2020
isLoading: boolean
2121
}
2222

site/src/pages/UserSettingsPage/SSHKeysPage/SSHKeysPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const Language = {
1515
export interface SSHKeysPageViewProps {
1616
isLoading: boolean
1717
hasLoaded: boolean
18-
getSSHKeyError?: Error | unknown
19-
regenerateSSHKeyError?: Error | unknown
18+
getSSHKeyError?: unknown
19+
regenerateSSHKeyError?: unknown
2020
sshKey?: GitSSHKey
2121
onRegenerateClick: () => void
2222
}

site/src/pages/UserSettingsPage/TokensPage/TokensPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ const lastUsedOrNever = (lastUsed: string) => {
2828

2929
export interface TokensPageViewProps {
3030
tokens?: APIKeyWithOwner[]
31-
getTokensError?: Error | unknown
31+
getTokensError?: unknown
3232
isLoading: boolean
3333
hasLoaded: boolean
3434
onDelete: (token: APIKeyWithOwner) => void
35-
deleteTokenError?: Error | unknown
35+
deleteTokenError?: unknown
3636
}
3737

3838
export const TokensPageView: FC<

site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import { ErrorAlert } from "components/Alert/ErrorAlert"
1717
export interface WorkspaceProxyViewProps {
1818
proxies?: Region[]
1919
proxyLatencies?: Record<string, ProxyLatencyReport>
20-
getWorkspaceProxiesError?: Error | unknown
20+
getWorkspaceProxiesError?: unknown
2121
isLoading: boolean
2222
hasLoaded: boolean
2323
preferredProxy?: Region
24-
selectProxyError?: Error | unknown
24+
selectProxyError?: unknown
2525
}
2626

2727
export const WorkspaceProxyView: FC<

site/src/xServices/appearance/appearanceXService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { AppearanceConfig } from "../../api/typesGenerated"
55

66
export type AppearanceContext = {
77
appearance?: AppearanceConfig
8-
getAppearanceError?: Error | unknown
9-
setAppearanceError?: Error | unknown
8+
getAppearanceError?: unknown
9+
setAppearanceError?: unknown
1010
preview: boolean
1111
}
1212

site/src/xServices/auth/authMethodsXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as API from "api/api"
44

55
export interface AuthMethodsContext {
66
authMethods?: TypeGen.AuthMethods
7-
error?: Error | unknown
7+
error?: unknown
88
}
99

1010
export const authMethodsXService = createMachine(

site/src/xServices/auth/authXService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ const signOut = async () => {
181181
} as UnauthenticatedData
182182
}
183183
export interface AuthContext {
184-
error?: Error | unknown
185-
updateProfileError?: Error | unknown
184+
error?: unknown
185+
updateProfileError?: unknown
186186
data?: AuthData
187187
}
188188

site/src/xServices/buildInfo/buildInfoXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as API from "../../api/api"
33
import * as TypesGen from "../../api/typesGenerated"
44

55
export interface BuildInfoContext {
6-
getBuildInfoError?: Error | unknown
6+
getBuildInfoError?: unknown
77
buildInfo?: TypesGen.BuildInfoResponse
88
}
99

site/src/xServices/createWorkspace/createWorkspaceXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type CreateWorkspaceContext = {
2525
templateName: string
2626
mode: CreateWorkspaceMode
2727
defaultName: string
28-
error?: Error | unknown
28+
error?: unknown
2929
// Form
3030
template?: Template
3131
parameters?: TemplateVersionParameter[]

site/src/xServices/entitlements/entitlementsXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Entitlements } from "../../api/typesGenerated"
44

55
export type EntitlementsContext = {
66
entitlements?: Entitlements
7-
getEntitlementsError?: Error | unknown
7+
getEntitlementsError?: unknown
88
}
99

1010
export const entitlementsMachine = createMachine(

site/src/xServices/experiments/experimentsMachine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { createMachine, assign } from "xstate"
44

55
export interface ExperimentsContext {
66
experiments?: Experiment[]
7-
getExperimentsError?: Error | unknown
7+
getExperimentsError?: unknown
88
}
99

1010
export const experimentsMachine = createMachine(

site/src/xServices/quotas/quotasXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { WorkspaceQuota } from "../../api/typesGenerated"
55
export type QuotaContext = {
66
username: string
77
quota?: WorkspaceQuota
8-
getQuotaError?: Error | unknown
8+
getQuotaError?: unknown
99
}
1010

1111
export const quotaMachine = createMachine(

site/src/xServices/roles/siteRolesXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const Language = {
1010
type SiteRolesContext = {
1111
hasPermission: boolean
1212
roles?: TypesGen.AssignableRoles[]
13-
getRolesError: Error | unknown
13+
getRolesError: unknown
1414
}
1515

1616
export const siteRolesMachine = createMachine(

site/src/xServices/template/templateVariablesXService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ type TemplateVariablesContext = {
2424
createTemplateVersionRequest?: CreateTemplateVersionRequest
2525
newTemplateVersion?: TemplateVersion
2626

27-
getTemplateDataError?: Error | unknown
28-
updateTemplateError?: Error | unknown
27+
getTemplateDataError?: unknown
28+
updateTemplateError?: unknown
2929

3030
jobError?: TemplateVersion["job"]["error"]
3131
}

site/src/xServices/templateVersion/templateVersionXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface TemplateVersionMachineContext {
1818
template?: Template
1919
currentVersion?: TemplateVersion
2020
currentFiles?: TemplateVersionFiles
21-
error?: Error | unknown
21+
error?: unknown
2222
// Get file diffs
2323
previousVersion?: TemplateVersion
2424
previousFiles?: TemplateVersionFiles

site/src/xServices/templates/templatesXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface TemplatesContext {
88
permissions: Permissions
99
templates?: TypesGen.Template[]
1010
examples?: TypesGen.TemplateExample[]
11-
error?: Error | unknown
11+
error?: unknown
1212
}
1313

1414
export const templatesMachine = createMachine(

0 commit comments

Comments
 (0)