Skip to content

Commit

Permalink
fix: re-export types (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Mar 3, 2024
1 parent 86a8077 commit 394652b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomWithFormControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
} from './validateAtoms';
import { AtomWithValidation, validateAtoms } from './validateAtoms';

type Options<Vkeys extends symbol | string | number, Vvals> = {
export type Options<Vkeys extends symbol | string | number, Vvals> = {
validate: Validator<Vkeys, Vvals>;
};

Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit 394652b

Please sign in to comment.