UNPKG

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