UNPKG

507 BPlain TextView Raw
1import { setDebug } from '@feathersjs/commons'
2
3import version from './version'
4import { Feathers } from './application'
5import { Application } from './declarations'
6
7export function feathers<T = any, S = any>() {
8 return new Feathers<T, S>() as Application<T, S>
9}
10
11feathers.setDebug = setDebug
12
13export { version, Feathers }
14export * from './hooks'
15export * from './declarations'
16export * from './service'
17
18if (typeof module !== 'undefined') {
19 module.exports = Object.assign(feathers, module.exports)
20}