From 206f8c8698f8f8ed15c9e3080f4e9e3d6e0033b8 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Wed, 1 Dec 2021 13:49:15 -0800 Subject: [PATCH] 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 --- src/renderer/components/wizard/wizard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/wizard/wizard.tsx b/src/renderer/components/wizard/wizard.tsx index fc6b1f2a71..5591208579 100755 --- a/src/renderer/components/wizard/wizard.tsx +++ b/src/renderer/components/wizard/wizard.tsx @@ -61,7 +61,7 @@ export class Wizard extends React.Component { return React.cloneElement(stepElem, { step: i + 1, - wizard: this, + wizard: this as Wizard, next: this.nextStep, prev: this.prevStep, first: this.firstStep,