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