1
0
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:
Ryan Cavanaugh 2021-12-01 13:49:15 -08:00 committed by GitHub
parent 4c16b7020d
commit 206f8c8698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,