Issues with Recursive Schemas and Class Interface
I'd like to get feedback on recursive schemas with the class interface.
This doesn't work:
Because
Attempting
Results in:
Ignoring the error with
This doesn't work:
Because
Property 'schema' does not exist on 'typeof Item'.Attempting
(Item as any), and then passing the type to lazy like this: Results in:
'Item2' is referenced directly or indirectly in its own base expression.Ignoring the error with
// @ts-ignore ruins type inference.