Fixed typo
Changed the type name from 'bool' to 'boolean' to follow the change in TypeScript
Fixed typo in all places