Skip to content

Commit

Permalink
Add type annotation.
Browse files Browse the repository at this point in the history
Somehow the tsc is stricter when I npm publish than when I do it myself.
  • Loading branch information
presleyp committed Feb 5, 2015
1 parent e711956 commit 6357fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class ExperimentRecord {

public getBlockGrades(blockID: string): boolean[] {
// get the last iteration of each page
var recentRecords: TrialRecord[] = _.map(this.trialRecords, _.last);
var recentRecords: TrialRecord[] = _.map(this.trialRecords, (tr: TrialRecord[]) => {return _.last(tr)});
// get only records contained by the given block
var relevantRecords: TrialRecord[] = _.filter(recentRecords, (tr: TrialRecord) => {
return tr.inBlock(blockID);
Expand Down

0 comments on commit 6357fe7

Please sign in to comment.