feathersjs/feathers

View on GitHub
packages/feathers/src/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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)
}