Skip to content

Commit

Permalink
Add basic type info for data provider
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Aug 14, 2016
1 parent 7387f9d commit b8429db
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ function generateRows(
return rows;
}

var dataProvider = {
rows: generateRows(1000, 100),
var dataProvider:{
rows: Array<{columns: any[]}>;
columns: {
count: 100
count: number
}
} = {
rows: generateRows(10, 50),
columns: {
count: 50
}
};

Expand Down

0 comments on commit b8429db

Please sign in to comment.