Skip to content

Commit a21429a

Browse files
committed
refactor(grids): mark primaryKey as string
1 parent 6cec008 commit a21429a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/common/grid.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export interface GridType extends IGridDataBindable {
671671
/** Indicates whether rows in the grid can be dragged. If te value is true, the rows can be dragged */
672672
rowDraggable: boolean;
673673
/** Represents the unique primary key used for identifying rows in the grid */
674-
primaryKey: any;
674+
primaryKey: string;
675675
/** Represents the unique identifier of the grid. */
676676
id: string;
677677
/** The height of the visible rows in the grid. */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export abstract class IgxGridBaseDirective implements GridType,
436436
*/
437437
@WatchChanges()
438438
@Input()
439-
public primaryKey: any;
439+
public primaryKey: string;
440440

441441
/**
442442
* Gets/Sets a unique values strategy used by the Excel Style Filtering

0 commit comments

Comments
 (0)