Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit 122b377

Browse files
author
ohotnikov.ivan
committed
fix(console): resolve TypeScript build errors
Add missing 'storage' field to CRDVersion interface. Change enrichSchemaWithEnums return type to any — the function manipulates arbitrary JSON schema objects where deep property access cannot be statically typed without excessive boilerplate. Signed-off-by: ohotnikov.ivan <[email protected]>
1 parent 81cc8a4 commit 122b377

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/console/src/lib/backup-utils.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ export function enrichSchemaWithEnums(
22
schema: unknown,
33
path: string[],
44
enumMap: Record<string, string[]>
5-
): unknown {
5+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6+
): any {
67
if (!schema || typeof schema !== "object") return schema
78

89
const currentPath = path.join(".")

‎apps/console/src/lib/use-crd-schema.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useK8sGet } from "@cozystack/k8s-client"
22

33
interface CRDVersion {
44
name: string
5+
storage?: boolean
56
schema?: {
67
openAPIV3Schema?: {
78
properties?: {

0 commit comments

Comments
 (0)