From 7fa4a7843185e84a20b92b33c92deaa5ff78545e Mon Sep 17 00:00:00 2001 From: Viraj Ajay Joshi Date: Wed, 3 Apr 2024 15:58:09 +0530 Subject: [PATCH] fix: typing for checkbox radio and input --- packages/unstyled/checkbox/src/types.ts | 2 +- packages/unstyled/input/src/types.ts | 2 +- packages/unstyled/radio/src/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/unstyled/checkbox/src/types.ts b/packages/unstyled/checkbox/src/types.ts index c97e4eec82..55b063ee8e 100644 --- a/packages/unstyled/checkbox/src/types.ts +++ b/packages/unstyled/checkbox/src/types.ts @@ -1,5 +1,5 @@ import type { ViewProps } from 'react-native'; -interface InterfaceCheckbox extends ViewProps { +export interface InterfaceCheckbox extends ViewProps { value: string; onChange?: (isSelected: boolean) => void; children?: React.ReactNode; diff --git a/packages/unstyled/input/src/types.ts b/packages/unstyled/input/src/types.ts index 950e8aaf97..9ae0e41196 100644 --- a/packages/unstyled/input/src/types.ts +++ b/packages/unstyled/input/src/types.ts @@ -13,7 +13,7 @@ export interface InputContext { inputFieldRef?: any; } -interface IInputFieldProps { +export interface IInputFieldProps { /** * If true, the input will indicate an error. */ diff --git a/packages/unstyled/radio/src/types.ts b/packages/unstyled/radio/src/types.ts index dcbea8bb70..6660f3ff73 100644 --- a/packages/unstyled/radio/src/types.ts +++ b/packages/unstyled/radio/src/types.ts @@ -1,5 +1,5 @@ import type { ViewProps } from 'react-native'; -interface InterfaceRadio extends ViewProps { +export interface InterfaceRadio extends ViewProps { value: string; onChange?: (isSelected: boolean) => void; children?: React.ReactNode;