[react-albus] Define WithWizard render prop component (#34823)

Fixes Error: `Module '"node_modules/@types/react-albus"' has no exported member 'WithWizard'. Did you mean 'withWizard'?"`

https://github.com/americanexpress/react-albus/blob/master/src/index.js#L18
This commit is contained in:
Ben Hodgson
2019-04-18 16:15:50 -07:00
committed by Armando Aguirre
parent 7a58d1bee8
commit 212eb0cf15
+7 -3
View File
@@ -41,15 +41,19 @@ export interface WizardProps {
export const Wizard: React.ComponentType<WizardProps>;
export type WizardContextRenderProps =
| { render?: (wizard: WizardContext) => React.ReactNode }
| { children: (wizard: WizardContext) => React.ReactNode };
export const WithWizard: React.ComponentType<WizardContextRenderProps>;
export interface StepsProps {
step?: StepObject;
}
export const Steps: React.ComponentType<StepsProps>;
export type StepProps = StepObject & (
| { render?: (wizard: WizardContext) => React.ReactNode }
| { children: (wizard: WizardContext) => React.ReactNode });
export type StepProps = StepObject & WizardContextRenderProps;
/**
* In addition to id, any additional props added to <Step> will be available on each step object.