Lance Finney
Member since Apr 26, 2021
- Profile: /members/14294-lance-finney.htm
- Comments: 2
Recent Blog Comments By Lance Finney
-
Discriminated Unions Don't Seem To Work In Angular 9.0.0-next.5 When fullTemplateTypeCheck Is Enabled
Posted on Apr 29, 2021 at 7:50 AM
I use type guards a lot, but I don't think I would ever have thought of wrapping a type guard in a generic pipe like that, except for seeing the comment. It works well, but my teammates have asked me to add more explanation in comments in the PR review, so it's not particularly straight-forw... read more »
-
Discriminated Unions Don't Seem To Work In Angular 9.0.0-next.5 When fullTemplateTypeCheck Is Enabled
Posted on Apr 26, 2021 at 1:04 PM
There's a GitHub issue for this in the Angular repo, and one of the commenters produced a way to use type guards and pipes to keep type safety: https://github.com/angular/angular/issues/34522#issuecomment-762973301... read more »