From 3a7b0f84b0a4cefc34abc4c09a94b87a15a9c9a2 Mon Sep 17 00:00:00 2001 From: Denis Platonov Date: Thu, 13 Jun 2024 12:00:51 +0300 Subject: [PATCH] chore: add-table-body-cell-directive-guard --- .../table/src/directives/table-cell-template.directive.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } }