From b36b5af94895b1411501d7429be51b0f5e532ee2 Mon Sep 17 00:00:00 2001 From: Jan-Gerke Salomon Date: Thu, 5 Oct 2023 14:07:10 +0200 Subject: [PATCH] chore(transferoption): add missing onClick/onDoubleClick prop TS types --- components/transfer/types/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/transfer/types/index.d.ts b/components/transfer/types/index.d.ts index caed345c30..104ca659da 100644 --- a/components/transfer/types/index.d.ts +++ b/components/transfer/types/index.d.ts @@ -54,16 +54,20 @@ export interface TransferProps { export const Transfer: React.FC +type TransferOptionOnClickProp = (payload: { value: string }) => void + export interface TransferOptionRenderProps extends TransferOption { highlighted: boolean selected: boolean - onClick: (payload: { value: string }) => void - onDoubleClick: (payload: { value: string }) => void + onClick: TransferOptionOnClickProp + onDoubleClick: TransferOptionOnClickProp } export interface TransferOptionProps { label: React.ReactNode value: string + onClick: TransferOptionOnClickProp + onDoubleClick: TransferOptionOnClickProp className?: string dataTest?: string disabled?: boolean