Skip to content

Commit

Permalink
plugins: tsconfig: add strictNullChecks
Browse files Browse the repository at this point in the history
Signed-off-by: Dhairya Majmudar <[email protected]>
  • Loading branch information
DhairyaMajmudar committed Feb 18, 2025
1 parent 78775d6 commit 7cfde71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend/src/lib/k8s/api/v2/useKubeObjectList.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { renderHook } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import {
kubeObjectListQuery,
ListResponse,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/redux/overviewChartsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export interface OverviewChartsProcessor {
processor: (charts: OverviewChart[]) => OverviewChart[];
}

interface OverviewChartsState {
export interface OverviewChartsState {
processors: OverviewChartsProcessor[];
}

const initialState: OverviewChartsState = {
export const initialState: OverviewChartsState = {
processors: [],
};

Expand Down
1 change: 1 addition & 0 deletions plugins/headlamp-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
Expand Down

0 comments on commit 7cfde71

Please sign in to comment.