Currently, I'm in the process of exploring an innovative alternative to a previously effective JavaScript approach that has certain complexities which I aim to avoid.
After diving into the TypeScript layer and reevaluating things, I've managed to come up with a solution that closely aligns with my objectives.
The only roadblock I'm facing is an persistent error that seems impossible to resolve without resorting to using 'ts-ignore'.
If anyone out there has insights on how I could tackle this issue while keeping the design intact, I'd greatly appreciate your input.
- In order to steer clear of cumbersome implementations and code duplication, it's crucial for TypeScript to infer types from the underlying JavaScript layer. However, I'm open to some TypeScript hacks and complexity within the abstraction classes.
- The desired form of 'proto' in JavaScript should look something like this: (System* => _SystemGameMiddle => SystemGameMiddle => _System => System)
- I can introduce type complexities in either 'SystemGameMiddle' or 'System', but not in 'System*'
- 'system.test' must expose all components injected to classes type.
<!-- TypeScript code goes here -->