Skip to content

Commit

Permalink
Multistep typing improvements.
Browse files Browse the repository at this point in the history
1. Adds export for useMultistepState
2. Updates Multistep typing to remove prop requirement and allow multiple children.
  • Loading branch information
jkaravakis authored Oct 25, 2022
1 parent eee7ac0 commit 3dcb9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ export function useScoper(name: string): (name: string) => string;

export function useMultistepApi(): MultistepApi;

export function useMultistepState(): MultistepState;

export function useForm<UserProps>(
formProps: InformedProps<UserProps>
): {
Expand Down Expand Up @@ -365,7 +367,7 @@ declare namespace ArrayField {
declare function Multistep({
children
}: {
children: (props: MultistepApi & MultistepState) => JSX.Element;
children: JSX.Element|JSX.Element[];
}): JSX.Element;

declare namespace Multistep {
Expand Down

0 comments on commit 3dcb9c0

Please sign in to comment.