mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[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:
committed by
Armando Aguirre
parent
7a58d1bee8
commit
212eb0cf15
Vendored
+7
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user