Feature/typescript fix (#692)
Feature/typescript fix (#692)

* Fix some TypeScript declaration problems

* Minimize changes relative to source

feathersjs/feathers,feathersjs/feathers,feathersjs/feathers