Added explicit return type

Without explicit return types everywhere, the definition cannot be used in projects that build with --noImplicitAny flag.