packages/feathers/src/index.ts
import { setDebug } from '@feathersjs/commons'
import version from './version'
import { Feathers } from './application'
import { Application } from './declarations'
export function feathers<T = any, S = any>() {
return new Feathers<T, S>() as Application<T, S>
}
feathers.setDebug = setDebug
export { version, Feathers }
export * from './hooks'
export * from './declarations'
export * from './service'
if (typeof module !== 'undefined') {
module.exports = Object.assign(feathers, module.exports)
}