We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b8177c commit c3b898cCopy full SHA for c3b898c
1 file changed
projects/classes/the-shape-of-types/src/index.test.ts
@@ -5,7 +5,10 @@ import * as solution from "./solution";
5
6
const { Demon, Horror, Sorcerer } = process.env.TEST_SOLUTIONS
7
? solution
8
- : index;
+ : // In theory, it would be nice to not have to apply this cast
9
+ // In practice, TypeScript's structural typing does not play well with # privates
10
+ // See https://github.com/LearningTypeScript/projects/issues/183
11
+ (index as unknown as typeof solution);
12
13
class MockHorror extends Horror {
14
name = "";
0 commit comments