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