Skip to content

Commit 57157b7

Browse files
CopilotMayaKirova
andcommitted
fix: Use Partial<IPinningConfig> for better type safety
Co-authored-by: MayaKirova <[email protected]>
1 parent e90d8b6 commit 57157b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ export abstract class IgxGridBaseDirective implements GridType,
23222322
this.resetCaches();
23232323
}
23242324
// Filter out undefined values to prevent overriding defaults
2325-
const filteredValue: IPinningConfig = {} as IPinningConfig;
2325+
const filteredValue: Partial<IPinningConfig> = {};
23262326
if (value) {
23272327
if (value.columns !== undefined) {
23282328
filteredValue.columns = value.columns;

0 commit comments

Comments
 (0)