Remove type circularity in wizard.tsx

This code has a type circularity that previously went undetected. Adding an `as Wizard` assertion here removes the circularity.

See https://github.com/microsoft/TypeScript/issues/46939 / https://github.com/microsoft/TypeScript/pull/46981
This commit is contained in:
Ryan Cavanaugh authored and GitHub committed 2021-12-01 13:49:15 -08:00
1 parent 4c16b7020d
commit 206f8c8698
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ export class Wizard extends React.Component<WizardProps, State> {
return React.cloneElement(stepElem, {
step: i + 1,
wizard: this,
wizard: this as Wizard,
next: this.nextStep,
prev: this.prevStep,
first: this.firstStep,