Made every type declaration explicit to prevent compilation errors when using the --noImplicitAny switch.