UNPKG

ngx-sails-socketio

Version:

An Angular module for connecting SailsJs backend through SocketIO.

17 lines (16 loc) 595 B
import { SailsResponse } from "./sails.response"; import { SailsRequestOptions } from "./sails.request.options"; import { SailsInterceptorHandlerInterface } from "./sails.interceptor.handler"; import { Observable } from "rxjs/Observable"; export interface SailsInterceptorConstructor { /** * Allows Angular Dependency Injection */ new (...args: any[]): any; } export interface SailsInterceptorInterface { /** * @returns Observable<SailsResponse> */ intercept(request: SailsRequestOptions, next: SailsInterceptorHandlerInterface): Observable<SailsResponse>; }