Lazy proxies don't type correctly (require casting) #15

Open
opened 2023-04-24 18:42:10 +00:00 by thepaperpilot · 0 comments
thepaperpilot commented 2023-04-24 18:42:10 +00:00 (Migrated from github.com)

Every lazy proxy requires casting as unknown as <TYPE> at the end or else it won't be correctly typed. This is due in part to how processing computables works, and how we need to reference the object itself when processing computable properties. Further discussion on a discord thread.

I'd consider this "solved" when a lazy proxy could be created with no casting, and the inferred property typing is correct.

Every lazy proxy requires casting `as unknown as <TYPE>` at the end or else it won't be correctly typed. This is due in part to how processing computables works, and how we need to reference the object itself when processing computable properties. Further discussion on a discord thread. I'd consider this "solved" when a lazy proxy could be created with no casting, and the inferred property typing is correct.
thepaperpilot added this to the Profectus project 2023-11-16 16:50:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: profectus/Profectus#15
No description provided.