bool -> boolean

for TypeScript 1.0.