Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlisa committed Oct 24, 2024
1 parent a751204 commit 1a979b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function KubeNamespaceSelector({
namespaceRequired,
}: {
kubeClusterItem: PendingListItem;
fetchKubeNamespaces(p: KubeNamespaceRequest): Promise<Option[]>;
fetchKubeNamespaces(p: KubeNamespaceRequest): Promise<string[]>;
savedResourceItems: PendingListItem[];
toggleResource: (resource: PendingListItem) => void;
bulkToggleKubeResources: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ export const Success = () => (

const baseProps: RequestCheckoutWithSliderProps = {
fetchKubeNamespaces: async () => [
{ value: 'namespace1', label: 'namespace1' },
{ value: 'namespace2', label: 'namespace2' },
{ value: 'namespace3', label: 'namespace3' },
{ value: 'namespace4', label: 'namespace4' },
'namespace1',
'namespace2',
'namespace3',
'namespace4',
],
bulkToggleKubeResources: () => null,
createAttempt: { status: '' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ export type RequestCheckoutProps<T extends PendingListItem = PendingListItem> =
Header?: () => JSX.Element;
startTime: Date;
onStartTimeChange(t?: Date): void;
fetchKubeNamespaces(p: KubeNamespaceRequest): Promise<Option[]>;
fetchKubeNamespaces(p: KubeNamespaceRequest): Promise<string[]>;
bulkToggleKubeResources(
kubeResources: PendingKubeResourceItem[],
kubeCluster: T
Expand Down

0 comments on commit 1a979b2

Please sign in to comment.