Fix typescript compile error in 0.9.5

Explicitly specify type for parameters array
Merge pull request #315 from gareththegeek/patch-1

Fix typescript compile error in 0.9.5