Project

General

Profile

Actions

Bug #20898

open

Fix narrowing issue in withDialog declaration

Added by Lisa Knox over 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-

Description

In src/store/dialog/with-dialog.ts, there is a 5 year old `TODO: fix this` comment on line 23. The fix is to pass `component as never` instead of just `component` into the connect function on line 26. The cause is a known issue with narrowing in Typescript that is slated to be fixed in Typescript 5.3.

Actions

Also available in: Atom PDF