Added two return types

This enables `noImplicitAny: true` when compiling