Skip to content

Commit

Permalink
chore: remove any
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jul 23, 2023
1 parent c8de4ed commit df2d332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/abc/cell/cell-host.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export class CellHostDirective implements OnInit {

this.viewContainerRef.clear();
const componentRef = this.viewContainerRef.createComponent(componentType);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(componentRef.instance as any).data = this.data;
(componentRef.instance as { data: CellWidgetData }).data = this.data;
}
}
2 changes: 1 addition & 1 deletion packages/abc/cell/cell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import type { CellDefaultText, CellOptions, CellTextResult, CellValue, CellWidge
<ng-template *ngSwitchCase="'widget'" cell-widget-host [data]="hostData"></ng-template>
<ng-container *ngSwitchCase="'img'">
<img
*ngFor="let i of $any(_text)"
*ngFor="let i of _text"
[attr.src]="i"
[attr.height]="safeOpt.img?.size"
[attr.width]="safeOpt.img?.size"
Expand Down

0 comments on commit df2d332

Please sign in to comment.