mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
parent
4c16b7020d
commit
206f8c8698
@ -61,7 +61,7 @@ export class Wizard extends React.Component<WizardProps, State> {
|
|||||||
|
|
||||||
return React.cloneElement(stepElem, {
|
return React.cloneElement(stepElem, {
|
||||||
step: i + 1,
|
step: i + 1,
|
||||||
wizard: this,
|
wizard: this as Wizard,
|
||||||
next: this.nextStep,
|
next: this.nextStep,
|
||||||
prev: this.prevStep,
|
prev: this.prevStep,
|
||||||
first: this.firstStep,
|
first: this.firstStep,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user