From fd6ab6807ad4a1017bd8b66340cb6ba8aa8048f5 Mon Sep 17 00:00:00 2001 From: Silviu Alexandru Avram Date: Fri, 29 Sep 2023 09:41:07 +0300 Subject: [PATCH] fix(typescript): add onPress to toggle button props parameter (#1548) --- typings/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 82836d43..7b4302a7 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -152,6 +152,7 @@ export interface GetLabelPropsReturnValue { export interface GetToggleButtonPropsOptions extends React.HTMLProps { disabled?: boolean + onPress?: (event: React.BaseSyntheticEvent) => void } interface GetToggleButtonPropsReturnValue { @@ -398,7 +399,9 @@ export interface UseSelectGetMenuReturnValue extends GetMenuPropsReturnValue { export interface UseSelectGetToggleButtonPropsOptions extends GetPropsWithRefKey, - React.HTMLProps {} + React.HTMLProps { + onPress?: (event: React.BaseSyntheticEvent) => void +} export interface UseSelectGetToggleButtonReturnValue extends Pick<