LearningTypeScript / projects

Hands-on real world projects that will help you exercise your knowledge of TypeScript.
https://learningtypescript.com/projects
244 stars 166 forks source link

fix: override # private unions in Horror Factory #277

Closed JoshuaKGoldberg closed 1 year ago

JoshuaKGoldberg commented 1 year ago

PR Checklist

Overview

Uses an as assertion to intersect the type of the index file on top of the solution file. In other words, this tells TypeScript that the type of the solution file should also include everything from index, making the classes assignable to each other despite having different # privates.