bool deprecated by Typescript 0.9
updated to boolean.