Replace bool with boolean (for TypeScript 0.9.0+)