import Rpc1 from './rpc-1.class'; import hooks from './rpc-1.hooks'; import { Application, RpcServiceMethods } from 'mikudos-socketio-app'; class Service extends RpcServiceMethods { constructor(hooks: { before: any; after: any; error: any }, service: any) { super(hooks, service); } } export default function(app: Application) { return new Service(hooks, new Rpc1()); }