Skip to content

Commit a8e3d23

Browse files
committed
refactor: Update GetUserResource type to use UserKind for improved type safety
1 parent b004559 commit a8e3d23

File tree

1 file changed

+2
-1
lines changed
  • frontend/packages/console-dynamic-plugin-sdk/src/app/core/reducers

1 file changed

+2
-1
lines changed

frontend/packages/console-dynamic-plugin-sdk/src/app/core/reducers/coreSelectors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { Map as ImmutableMap } from 'immutable';
2+
import type { UserKind } from '@console/internal/module/k8s/types';
23
import { UserInfo } from '../../../extensions';
34
import { ImpersonateKind, SDKStoreState, AdmissionWebhookWarning } from '../../redux-types';
45

56
type GetImpersonate = (state: SDKStoreState) => ImpersonateKind;
67
type GetUser = (state: SDKStoreState) => UserInfo;
7-
type GetUserResource = (state: SDKStoreState) => any;
8+
type GetUserResource = (state: SDKStoreState) => UserKind;
89
type GetAdmissionWebhookWarnings = (
910
state: SDKStoreState,
1011
) => ImmutableMap<string, AdmissionWebhookWarning>;

0 commit comments

Comments
 (0)