Closed seijikun closed 8 months ago
I'm getting the same things on same versions. Would like to know why.
I think this is one of the type gymnastics that isn't super well supported by TS. It used not to complain about it, but I think somewhere around 4.0 something changed with recursive types. It's not technically wrong, but the compiler complains about it now. It probably would be ok to swap it over to Registry
Is this pushed to the latest version? It still does not work for me.
On Wed, Mar 13, 2024 at 6:23 PM Chris Reeves @.***> wrote:
Closed #3425 https://github.com/ractivejs/ractive/issues/3425 as completed via a6e1241 https://github.com/ractivejs/ractive/commit/a6e1241df60646db6b6bd764f35aeedc123488fc .
— Reply to this email directly, view it on GitHub https://github.com/ractivejs/ractive/issues/3425#event-12110647618, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHF3S74QQD46CJEHRZNWTXTYYDUXZAVCNFSM6AAAAAAYZ7V2FSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGEYTANRUG43DCOA . You are receiving this because you commented.Message ID: @.***>
-- Clinton Skakun Founder & CEO Dedupely https://dedupe.ly/
+1-800-536-8156 @.***
It should be better with 1.4.3, yes.
Description:
I just tried to use Ractive 1.4.2 and its typings with typescript 4.8.4 - 5.1.3 and was stopped by the following error message:
Versions affected:
Reproduction:
The code he seems to be complaining about is this:
More specifically, he complains about the
components
field in Ractive's ctor parameters. That field is defined as:All of the self-references in the types
Static
,Ractive
, andPropertyOpts
are a little over my head right now. A quick fix I found is changing thecomponents
-field definition to: