Skip to content

Commit 0163f1c

Browse files
committed
fix types
1 parent c94f271 commit 0163f1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/demo-app/data-table/person-data-source.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export class PersonDataSource extends DataSource<any> {
5454
if (!this._sort.active || this._sort.direction == '') { return data; }
5555

5656
return data.sort((a, b) => {
57-
let propertyA, propertyB;
57+
let propertyA: number|string = '';
58+
let propertyB: number|string = '';
5859

5960
switch (this._sort.active) {
6061
case 'userId': [propertyA, propertyB] = [a.id, b.id]; break;

0 commit comments

Comments
 (0)