Skip to content

Commit

Permalink
feat: deep typing for template (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Zaytsev <sz@agentapp.ru>
  • Loading branch information
MillerSvt and Sviatoslav Zaytsev committed Oct 12, 2023
1 parent 6623939 commit acb6d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-polymorpheus/src/directives/outlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class PolymorpheusOutletDirective<C> implements OnChanges, DoCheck {
static ngTemplateContextGuard<T>(
_dir: PolymorpheusOutletDirective<T>,
_ctx: any,
): _ctx is PolymorpheusContext<string> {
): _ctx is PolymorpheusContext<T extends PolymorpheusPrimitive ? T : never> {
return true;
}

Expand Down

0 comments on commit acb6d15

Please sign in to comment.