Skip to content

Commit 42c3846

Browse files
committed
chore(grid): set type to the ctx variable
1 parent 4cf711f commit 42c3846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
212212
*/
213213
public get context(): IgxCellTemplateContext {
214214
const getCellType = () => this.getCellType(true);
215-
const ctx = {
215+
const ctx: IgxCellTemplateContext = {
216216
$implicit: this.value,
217217
additionalTemplateContext: this.column.additionalTemplateContext,
218218
get cell() {
@@ -224,10 +224,10 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
224224
}
225225
};
226226
if (this.editMode) {
227-
ctx['formControl'] = this.formControl;
227+
ctx.formControl = this.formControl;
228228
}
229229
if (this.isInvalid) {
230-
ctx['defaultErrorTemplate'] = this.defaultErrorTemplate;
230+
ctx.defaultErrorTemplate = this.defaultErrorTemplate;
231231
}
232232
return ctx;
233233
}

0 commit comments

Comments
 (0)