Changed the type name from 'bool' to 'boolean' to follow the change in TypeScript