diff --git a/projects/table/src/directives/table-cell-template.directive.ts b/projects/table/src/directives/table-cell-template.directive.ts index d69af8e42..c2c222652 100644 --- a/projects/table/src/directives/table-cell-template.directive.ts +++ b/projects/table/src/directives/table-cell-template.directive.ts @@ -8,4 +8,11 @@ export class TableBodyCellTemplateDirective { @Input() public pupaTableBodyCellTemplateTypeFrom: T; constructor(public readonly templateRef: TemplateRef>) {} + + public static ngTemplateContextGuard( + _directive: TableBodyCellTemplateDirective, + _context: unknown + ): _context is TableBodyCellContext { + return true; + } } diff --git a/projects/widgets/src/components/infinity-scroller/directives/infinite-scroller-item-template.directive.ts b/projects/widgets/src/components/infinity-scroller/directives/infinite-scroller-item-template.directive.ts index c7c7097da..59c18a3e6 100644 --- a/projects/widgets/src/components/infinity-scroller/directives/infinite-scroller-item-template.directive.ts +++ b/projects/widgets/src/components/infinity-scroller/directives/infinite-scroller-item-template.directive.ts @@ -8,4 +8,11 @@ export class InfiniteScrollerItemTemplateDirective { @Input() public pupaInfiniteScrollerItemTemplateTypeFrom: T; constructor(public readonly templateRef: TemplateRef>) {} + + public static ngTemplateContextGuard( + _directive: InfiniteScrollerItemTemplateDirective, + _context: unknown + ): _context is InfinityScrollerItemContext { + return true; + } }