From 5863981d645eecb1894d0e21884a495ab4012367 Mon Sep 17 00:00:00 2001 From: Reaper Gelera Date: Sun, 3 Mar 2024 23:23:06 +0530 Subject: [PATCH] fix: re-export types --- src/atomWithFormControls.ts | 2 +- src/index.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/atomWithFormControls.ts b/src/atomWithFormControls.ts index 128414d..a3816b7 100644 --- a/src/atomWithFormControls.ts +++ b/src/atomWithFormControls.ts @@ -6,7 +6,7 @@ import type { } from './validateAtoms'; import { AtomWithValidation, validateAtoms } from './validateAtoms'; -type Options = { +export type Options = { validate: Validator; }; diff --git a/src/index.ts b/src/index.ts index e5d435b..f2d336c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,10 @@ export { atomWithValidate } from './atomWithValidate'; export { validateAtoms } from './validateAtoms'; export { atomWithFormControls } from './atomWithFormControls'; + +export type { SyncState, AsyncState } from './atomWithValidate'; +export type { + ActionableNext, + Options, + FormControls, +} from './atomWithFormControls';