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.
PR Checklist
Overview
Uses an
as
assertion to intersect the type of theindex
file on top of thesolution
file. In other words, this tells TypeScript that the type of thesolution
file should also include everything fromindex
, making the classes assignable to each other despite having different#
privates.